wok-6.x annotate mplayer-opt/receipt @ rev 16821
mplayer-opt: --enable-runtime-cpudetection --disable-mencoder
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Jul 11 14:26:51 2014 +0000 (2014-07-11) |
parents | 57fc46317c91 |
children | b9fb366ec70a |
rev | line source |
---|---|
al@16703 | 1 # SliTaz package receipt. |
al@16703 | 2 |
al@16704 | 3 PACKAGE="mplayer-opt" |
al@16703 | 4 VERSION="1.1.1" |
al@16703 | 5 CATEGORY="multimedia" |
al@16703 | 6 SHORT_DESC="The Ultimate Movie Player For Linux (with CPU optimizations)" |
al@16703 | 7 MAINTAINER="pankso@slitaz.org" |
al@16703 | 8 LICENSE="GPL2" |
al@16703 | 9 SOURCE="MPlayer" |
al@16703 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@16703 | 11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html" |
al@16703 | 12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL" |
al@16703 | 13 HOST_ARCH="i486 arm" |
al@16703 | 14 |
al@16703 | 15 # Dont forget to update all related pkgs |
al@16703 | 16 RELATED="mplayer-codecs mencoder" |
al@16703 | 17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses lame \ |
al@16703 | 18 xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \ |
al@16703 | 19 libvorbis libogg xvidcore x264 zlib xorg-libXss" |
al@16703 | 20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev alsa-lib-dev \ |
al@16703 | 21 ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \ |
al@16703 | 22 esound-dev audiofile-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \ |
al@16703 | 23 xorg-xextproto pkg-config yasm" |
al@16703 | 24 |
al@16703 | 25 # Handle arch package install. Less deps and no GTK gui for ARM |
al@16703 | 26 case "$SLITAZ_ARCH" in |
al@16703 | 27 arm*) |
al@16703 | 28 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \ |
al@16703 | 29 libvorbis libtheora libsdl xvidcore lame esound gtk+" ;; |
al@16703 | 30 esac |
al@16703 | 31 |
al@16703 | 32 # Handle cross compilation. Host coreutils-file-* are used |
al@16703 | 33 case "$ARCH" in |
al@16703 | 34 i?86) |
al@16703 | 35 ARCH_ARGS="--target=i386-linux --disable-sdl" |
al@16703 | 36 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \ |
al@16703 | 37 libmng-dev lirc-dev" ;; |
al@16703 | 38 arm*) |
al@16703 | 39 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev" |
al@16703 | 40 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;; |
al@16703 | 41 esac |
al@16703 | 42 |
al@16703 | 43 # Rules to configure and make the package. |
al@16703 | 44 compile_rules() |
al@16703 | 45 { |
al@16703 | 46 # just remove next configure options: |
al@16703 | 47 # --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext |
al@16703 | 48 # --disable-sse --disable-sse2 --disable-ssse3 |
al@16703 | 49 ./configure \ |
al@16703 | 50 --prefix=/usr \ |
al@16703 | 51 --confdir=/etc/mplayer \ |
al@16703 | 52 --libdir=/usr/lib/mplayer \ |
al@16703 | 53 --language="en de es fr it pl ru" \ |
psychomaniak@16821 | 54 --enable-runtime-cpudetection \ |
psychomaniak@16821 | 55 --disable-mencoder \ |
al@16703 | 56 --disable-gl \ |
al@16703 | 57 --disable-jack \ |
al@16703 | 58 --disable-liblzo \ |
al@16703 | 59 --disable-libdv \ |
al@16703 | 60 --disable-fribidi \ |
al@16703 | 61 --disable-ivtv \ |
al@16703 | 62 --disable-smb \ |
al@16703 | 63 --disable-ftp \ |
al@16703 | 64 --disable-openal \ |
al@16703 | 65 --disable-faac \ |
al@16703 | 66 --disable-speex \ |
al@16703 | 67 --enable-gui \ |
al@16703 | 68 ${ARCH_ARGS} && |
al@16703 | 69 make $MAKEFLAGS && |
al@16703 | 70 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
al@16703 | 71 } |
al@16703 | 72 |
al@16703 | 73 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16703 | 74 genpkg_rules() |
al@16703 | 75 { |
al@16703 | 76 mkdir -p $fs/usr/share/mplayer/skins |
al@16703 | 77 cp -a $install/usr/bin $fs/usr |
al@16703 | 78 # Mencoder goes in a splited package. |
al@16703 | 79 rm $fs/usr/bin/mencoder |
al@16703 | 80 [ -d "$install/usr/share/mplayer" ] && \ |
al@16703 | 81 cp -a $install/usr/share/mplayer $fs/usr/share |
al@16703 | 82 cp -a $install/etc $fs |
al@16703 | 83 cp $src/etc/example.conf $fs/etc/mplayer |
al@16703 | 84 # Config to use Xv by default. |
al@16703 | 85 cp $stuff/mplayer.conf $fs/etc/mplayer |
al@16703 | 86 # default skin |
al@16703 | 87 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
al@16703 | 88 cd $fs/usr/share/mplayer/skins && ln -s productive default |
al@16703 | 89 # Font |
al@16703 | 90 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
al@16703 | 91 # Xv support dont work for ARM and gmplayer symlink not created |
al@16703 | 92 case "$ARCH" in |
al@16703 | 93 arm*) |
al@16703 | 94 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf |
al@16703 | 95 cd $fs/usr/bin && ln -s mplayer gmplayer ;; |
al@16703 | 96 esac |
al@16703 | 97 } |