wok-next view mplayer-svn/receipt @ rev 21068

Rebuild Perl modules
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 11 23:38:35 2018 +0200 (2018-12-11)
parents f48456621a9d
children ea9e52516fb0
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="32666"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mplayer SVN version"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
11 BRANCH="$VERSION"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="subversion|svn://svn.mplayerhq.hu/mplayer/trunk"
15 BUILD_DEPENDS="alsa-lib-dev gtk2-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev libtheora-dev subversion yasm"
17 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
18 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
19 # mplayer versions (use: svn info), very likely to succeed.
20 #
21 # To compile with in-built ffmpeg (and double the size of pkg), remove from
22 # compile options:
23 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
24 # --disable-libpostproc_a --disable-libswscale_a --disable-libavcodec_mpegaudio_hp
26 compile_rules() {
27 sed -i -e 's/info->color_type/png_get_color_type(png, info)/' \
28 -e 's/pngstr->io_ptr/png_get_io_ptr(pngstr)/' libmpcodecs/vd_mpng.c
29 # KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
30 # sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/" configure
31 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
32 # disable video outputs, audio outputs, some advanced options
33 ./configure \
34 --extra-cflags=-DHAVE_MMAP \
35 --prefix=/usr \
36 --confdir=/etc/mplayer \
37 --libdir=/usr/lib/mplayer \
38 --enable-gui \
39 --enable-freetype \
40 --language="en de es fr" \
41 --target=i386-linux \
42 --disable-largefiles \
43 --disable-dvdnav \
44 --disable-pvr \
45 --disable-enca \
46 --disable-fribidi \
47 --disable-maemo \
48 --disable-lirc \
49 --disable-lircc \
50 --disable-nemesi \
51 --disable-vstream \
52 --disable-smb \
53 --disable-live \
54 --disable-speex \
55 --disable-mng \
56 --disable-liblzo \
57 --disable-faad \
58 --disable-faad-internal \
59 --disable-libdv \
60 --disable-faac \
61 --disable-faac-lavc \
62 --disable-ladspa \
63 --disable-libbs2b \
64 --disable-libdca \
65 --disable-musepack \
66 --disable-gl \
67 --disable-vdpau \
68 --disable-directfb \
69 --disable-sdl \
70 --disable-mga \
71 --disable-jack \
72 --disable-pulse \
73 --disable-ossaudio \
74 --disable-openal \
75 --disable-nas \
76 --disable-esd \
77 --disable-mmx \
78 --disable-mmxext \
79 --disable-3dnow \
80 --disable-3dnowext \
81 --disable-sse \
82 --disable-sse2 \
83 --disable-ssse3 \
84 --disable-fastmemcpy \
85 &&
86 make $MAKEFLAGS &&
87 make DESTDIR=$install install
88 }
90 genpkg_rules() {
91 mkdir -p $fs/usr/share/applications
92 cp -a $stuff/mplayer.desktop $fs/usr/share/applications
93 cp -a $install/usr/bin $fs/usr
94 # Mencoder goes in a splited package.
95 rm $fs/usr/bin/mencoder
96 cp -a $install/usr/share/mplayer $fs/usr/share
97 cp -a $install/usr/share/pixmaps $fs/usr/share
98 cp -a $install/etc $fs
99 cp $src/etc/example.conf $fs/etc/mplayer
100 # Config to use Xv by default.
101 cp $stuff/mplayer.conf $fs/etc/mplayer
102 # default skin
103 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
104 cd $fs/usr/share/mplayer/skins
105 ln -s productive default
106 # Font
107 cd ..
108 ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
109 DEPENDS="gtk2 cdparanoia-III libmad xorg-libXv libtheora lame giflib \
110 xorg-libXScrnSaver xorg-libXxf86vm alsa-lib bzlib x264 libass"
111 PROVIDE="mplayer"
112 SUGGESTED="v4l-utils"
113 TAGS="player movie audio video"
114 }