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