wok annotate mplayer-opt/receipt @ rev 16974

some fixes to previous commits
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Aug 05 15:58:00 2014 +0200 (2014-08-05)
parents f520133fcbf4
children 03f6246616fd
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"
psychomaniak@16953 17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv alsa-lib ncurses \
psychomaniak@16959 18 xorg-libXdamage giflib enca xorg-libXxf86vm libmng audiofile \
psychomaniak@16824 19 libogg zlib xorg-libXss"
psychomaniak@16953 20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev alsa-lib-dev \
psychomaniak@16959 21 ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
psychomaniak@16824 22 esound-dev audiofile-dev libogg-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)
psychomaniak@16824 35 ARCH_ARGS="--target=i486-linux --disable-sdl"
psychomaniak@16824 36 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-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 \
psychomaniak@16953 53 --enable-gui \
al@16703 54 --language="en de es fr it pl ru" \
psychomaniak@16821 55 --enable-runtime-cpudetection \
psychomaniak@16821 56 --disable-mencoder \
al@16703 57 --disable-gl \
al@16703 58 --disable-jack \
al@16703 59 --disable-liblzo \
al@16703 60 --disable-libdv \
al@16703 61 --disable-fribidi \
al@16703 62 --disable-ivtv \
al@16703 63 --disable-smb \
al@16703 64 --disable-ftp \
al@16703 65 --disable-openal \
al@16703 66 --disable-faac \
psychomaniak@16959 67 --disable-speex --disable-esd \
psychomaniak@16953 68 --disable-lirc --disable-lircc \
al@16703 69 ${ARCH_ARGS} &&
al@16703 70 make $MAKEFLAGS &&
al@16703 71 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
al@16703 72 }
al@16703 73
al@16703 74 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16703 75 genpkg_rules()
al@16703 76 {
al@16703 77 mkdir -p $fs/usr/share/mplayer/skins
al@16703 78 cp -a $install/usr/bin $fs/usr
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
psychomaniak@16959 83 # Add /etc/mplayer/input.conf
psychomaniak@16959 84 cp $stuff/input.conf $fs/etc/mplayer
al@16703 85 # Config to use Xv by default.
al@16703 86 cp $stuff/mplayer.conf $fs/etc/mplayer
al@16703 87 # default skin
al@16703 88 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
al@16703 89 cd $fs/usr/share/mplayer/skins && ln -s productive default
al@16703 90 # Font
al@16703 91 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
al@16703 92 # Xv support dont work for ARM and gmplayer symlink not created
al@16703 93 case "$ARCH" in
al@16703 94 arm*)
al@16703 95 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
al@16703 96 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
al@16703 97 esac
al@16703 98 }