wok-current annotate mplayer-opt/receipt @ rev 16773
busybox: add fatattr
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 20 15:21:26 2014 +0200 (2014-06-20) |
parents | 9ec6fb98bb16 |
children | 29445231de92 |
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" \ |
al@16703 | 54 --disable-fastmemcpy \ |
al@16703 | 55 --disable-gl \ |
al@16703 | 56 --disable-jack \ |
al@16703 | 57 --disable-liblzo \ |
al@16703 | 58 --disable-libdv \ |
al@16703 | 59 --disable-fribidi \ |
al@16703 | 60 --disable-ivtv \ |
al@16703 | 61 --disable-smb \ |
al@16703 | 62 --disable-ftp \ |
al@16703 | 63 --disable-openal \ |
al@16703 | 64 --disable-faac \ |
al@16703 | 65 --disable-speex \ |
al@16703 | 66 --enable-gui \ |
al@16703 | 67 ${ARCH_ARGS} && |
al@16703 | 68 make $MAKEFLAGS && |
al@16703 | 69 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d |
al@16703 | 70 } |
al@16703 | 71 |
al@16703 | 72 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16703 | 73 genpkg_rules() |
al@16703 | 74 { |
al@16703 | 75 mkdir -p $fs/usr/share/mplayer/skins |
al@16703 | 76 cp -a $install/usr/bin $fs/usr |
al@16703 | 77 # Mencoder goes in a splited package. |
al@16703 | 78 rm $fs/usr/bin/mencoder |
al@16703 | 79 [ -d "$install/usr/share/mplayer" ] && \ |
al@16703 | 80 cp -a $install/usr/share/mplayer $fs/usr/share |
al@16703 | 81 cp -a $install/etc $fs |
al@16703 | 82 cp $src/etc/example.conf $fs/etc/mplayer |
al@16703 | 83 # Config to use Xv by default. |
al@16703 | 84 cp $stuff/mplayer.conf $fs/etc/mplayer |
al@16703 | 85 # default skin |
al@16703 | 86 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins |
al@16703 | 87 cd $fs/usr/share/mplayer/skins && ln -s productive default |
al@16703 | 88 # Font |
al@16703 | 89 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf |
al@16703 | 90 # Xv support dont work for ARM and gmplayer symlink not created |
al@16703 | 91 case "$ARCH" in |
al@16703 | 92 arm*) |
al@16703 | 93 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf |
al@16703 | 94 cd $fs/usr/bin && ln -s mplayer gmplayer ;; |
al@16703 | 95 esac |
al@16703 | 96 } |