wok-current view mplayer-svn/receipt @ rev 20638
updated libcurl (7.60.0 -> 7.61.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 10 14:28:38 2019 +0100 (2019-01-10) |
parents | 8cefe4003152 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-svn"
4 VERSION="32666"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mplayer SVN version"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
10 PROVIDE="mplayer"
11 TAGS="player movie audio video"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="subversion|svn://svn.mplayerhq.hu/mplayer/trunk"
14 BRANCH="$VERSION"
15 SUGGESTED="libv4l"
17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora lame giflib \
18 xorg-libXss xorg-libXxf86vm alsa-lib bzlib x264 libass"
19 BUILD_DEPENDS="alsa-lib-dev gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev libtheora-dev subversion yasm"
21 # Rules to configure and make the package.
22 #
23 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
24 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
25 # mplayer versions (use: svn info), very likely to succeed.
26 #
27 # To compile with in-built ffmpeg (and double the size of pkg), remove from
28 # compile options:
29 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
30 # --disable-libpostproc_a --disable-libswscale_a --disable-libavcodec_mpegaudio_hp
32 compile_rules()
33 {
34 cd $src
35 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
36 sed -i "s/uname -r/echo $KERNEL_VERSION-slitaz/" configure
37 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
38 # disable video outputs, audio outputs, some advanced options
39 ./configure \
40 --extra-cflags=-DHAVE_MMAP \
41 --prefix=/usr \
42 --confdir=/etc/mplayer \
43 --libdir=/usr/lib/mplayer \
44 --enable-gui --enable-freetype \
45 --language="en de es fr" \
46 --target=i386-linux \
47 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
48 --disable-lirc --disable-lircc \
49 --disable-nemesi --disable-vstream \
50 --disable-smb --disable-live \
51 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
52 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
53 --disable-libdca --disable-musepack \
54 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
55 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
56 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
57 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
58 make $MAKEFLAGS &&
59 make DESTDIR=$DESTDIR install
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr/share/applications
66 cp -a $stuff/mplayer.desktop $fs/usr/share/applications
67 cp -a $install/usr/bin $fs/usr
68 # Mencoder goes in a splited package.
69 rm $fs/usr/bin/mencoder
70 cp -a $install/usr/share/mplayer $fs/usr/share
71 cp -a $install/usr/share/pixmaps $fs/usr/share
72 cp -a $install/etc $fs
73 cp $src/etc/example.conf $fs/etc/mplayer
74 # Config to use Xv by default.
75 cp stuff/mplayer.conf $fs/etc/mplayer
76 # default skin
77 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
78 cd $fs/usr/share/mplayer/skins && ln -s productive default
79 # Font
80 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
81 }