wok-4.x annotate mplayer-svn/receipt @ rev 5783

Speedup some builds
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 13:41:34 2010 +0200 (2010-07-10)
parents 2f2e0fbc2d56
children 85241294b8f8
rev   line source
jozee@2909 1 # SliTaz package receipt.
jozee@2909 2
jozee@2909 3 PACKAGE="mplayer-svn"
pascal@5581 4 VERSION="31179"
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 \
jozee@5035 9 xorg-libXss xorg-libXxf86vm alsa-lib bzlib"
jozee@5035 10 SUGGESTED="libv4l"
jozee@5035 11 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev libtheora-dev subversion"
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"
jozee@2909 16
jozee@2909 17 # Rules to configure and make the package.
pankso@4521 18 #
pankso@4521 19 # This package is compiled against shared ffmpeg. Compiling with shared ffmpeg
pankso@4521 20 # on svn version is always challenging. Tip: Try to use the same day ffmpeg and
pankso@4521 21 # mplayer versions (use: svn info), very likely to succeed.
pankso@4521 22 #
pankso@4521 23 # To compile with in-built ffmpeg (and double the size of pkg), remove from
pankso@4521 24 # compile options:
pankso@4521 25 # --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a
jozee@5035 26 # --disable-libpostproc_a --disable-libswscale_a --disable-libavcodec_mpegaudio_hp
jozee@2909 27
jozee@2909 28 compile_rules()
jozee@2909 29 {
pascal@5562 30 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
pascal@5562 31 if [ -d $PACKAGE-$VERSION ]; then
pascal@5562 32 true
pascal@5562 33 elif [ -f $TARBALL ]; then
pascal@5562 34 tar xzf $TARBALL
pascal@5562 35 else
pascal@5562 36 svn checkout -r $VERSION \
pascal@5563 37 svn://svn.mplayerhq.hu/mplayer/trunk $PACKAGE-$VERSION &&
pascal@5562 38 tar czf $TARBALL $PACKAGE-$VERSION
pascal@5562 39 fi
jozee@2909 40 cd $src
jozee@5035 41 # disable unwanted features, remote control, streaming, networking, unwanted codecs,
jozee@5035 42 # disable video outputs, audio outputs, some advanced options
jozee@2909 43 ./configure \
jozee@2909 44 --prefix=/usr \
jozee@2909 45 --confdir=/etc/mplayer \
jozee@2909 46 --libdir=/usr/lib/mplayer \
jozee@5035 47 --enable-gui --enable-freetype \
jozee@2909 48 --language="en de es fr" \
pankso@4521 49 --target=i386-linux \
jozee@5035 50 --disable-largefiles --disable-dvdnav --disable-pvr --disable-enca --disable-fribidi --disable-maemo \
pankso@4521 51 --disable-lirc --disable-lircc \
jozee@5035 52 --disable-nemesi --disable-vstream \
jozee@5035 53 --disable-smb --disable-network --disable-live \
jozee@5035 54 --disable-speex --disable-mng --disable-liblzo --disable-faad --disable-faad-internal \
jozee@5035 55 --disable-libdv --disable-faac --disable-faac-lavc --disable-ladspa --disable-libbs2b \
jozee@5035 56 --disable-libdca --disable-musepack \
jozee@5035 57 --disable-gl --disable-vdpau --disable-directfb --disable-sdl --disable-mga \
jozee@5035 58 --disable-jack --disable-pulse --disable-ossaudio --disable-openal --disable-nas --disable-esd \
jozee@5035 59 --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext \
jozee@5035 60 --disable-sse --disable-sse2 --disable-ssse3 --disable-fastmemcpy &&
pascal@5783 61 make -j 4 &&
pankso@4521 62 make DESTDIR=$PWD/_pkg install
jozee@2909 63 }
jozee@2909 64
jozee@2909 65 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2909 66 genpkg_rules()
jozee@2909 67 {
jozee@2909 68 mkdir -p $fs/usr/share
jozee@2909 69 cp -a $_pkg/usr/bin $fs/usr
jozee@2909 70 # Mencoder goes in a splited package.
jozee@2909 71 rm $fs/usr/bin/mencoder
jozee@2909 72 cp -a $_pkg/usr/share/mplayer $fs/usr/share
jozee@5035 73 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
jozee@2909 74 cp -a $_pkg/etc $fs
pankso@4521 75 cp $src/etc/example.conf $fs/etc/mplayer
jozee@2909 76 # Config to use Xv by default.
jozee@2909 77 cp stuff/mplayer.conf $fs/etc/mplayer
jozee@2909 78 # default skin
jozee@2909 79 tar xjf stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
jozee@2909 80 cd $fs/usr/share/mplayer/skins && ln -s productive default
jozee@2909 81 # Font
jozee@2909 82 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
jozee@2909 83 }