wok annotate mplayer-opt/receipt @ rev 18996

Up and Add Info (description) files and acpid correct weblink
author Leonardo Laporte <hackdorte@sapo.pt>
date Sat Mar 19 03:33:36 2016 -0300 (2016-03-19)
parents 8417cbe6fdae
children 9a9d8eb38212
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"
psychomaniak@16994 6 SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)"
psychomaniak@17053 7 MAINTAINER="psychomaniak@xakep.ru"
al@16703 8 LICENSE="GPL2"
pascal@17748 9 SOURCE="MPlayer"
pascal@17748 10 TARBALL="$SOURCE-$VERSION.tar.xz"
al@16703 11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
pascal@17748 12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
al@16703 13 HOST_ARCH="i486 arm"
al@16703 14
psychomaniak@16994 15 DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \
psychomaniak@17053 16 enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
psychomaniak@16994 17 BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \
psychomaniak@16959 18 ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
psychomaniak@16994 19 audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm"
al@16703 20
psychomaniak@16994 21 # Handle arch package install. Less deps and no GTK gui
al@16703 22 case "$SLITAZ_ARCH" in
al@16703 23 arm*)
al@16703 24 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
psychomaniak@16994 25 libvorbis libtheora libsdl" ;;
al@16703 26 esac
al@16703 27
al@16703 28 # Handle cross compilation. Host coreutils-file-* are used
al@16703 29 case "$ARCH" in
al@16703 30 i?86)
psychomaniak@17066 31 ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection"
psychomaniak@17053 32 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev" ;;
al@16703 33 arm*)
al@16703 34 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
al@16703 35 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
al@16703 36 esac
al@16703 37
al@16703 38 # Rules to configure and make the package.
al@16703 39 compile_rules()
al@16703 40 {
al@16703 41 ./configure \
al@16703 42 --prefix=/usr \
al@16703 43 --confdir=/etc/mplayer \
al@16703 44 --libdir=/usr/lib/mplayer \
al@16703 45 --language="en de es fr it pl ru" \
psychomaniak@17053 46 --enable-menu \
psychomaniak@16821 47 --disable-mencoder \
al@16703 48 --disable-gl \
al@16703 49 --disable-jack \
al@16703 50 --disable-liblzo \
al@16703 51 --disable-libdv \
al@16703 52 --disable-fribidi \
al@16703 53 --disable-ivtv \
al@16703 54 --disable-smb \
al@16703 55 --disable-ftp \
al@16703 56 --disable-openal \
al@16703 57 --disable-faac \
psychomaniak@16959 58 --disable-speex --disable-esd \
psychomaniak@16953 59 --disable-lirc --disable-lircc \
al@16703 60 ${ARCH_ARGS} &&
al@16703 61 make $MAKEFLAGS &&
al@16703 62 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
al@16703 63 }
al@16703 64
al@16703 65 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16703 66 genpkg_rules()
al@16703 67 {
psychomaniak@16994 68 mkdir -p $fs/usr/share/mplayer
al@16703 69 cp -a $install/usr/bin $fs/usr
al@16703 70 cp -a $install/etc $fs
al@16703 71 cp $src/etc/example.conf $fs/etc/mplayer
psychomaniak@16959 72 # Add /etc/mplayer/input.conf
psychomaniak@16959 73 cp $stuff/input.conf $fs/etc/mplayer
psychomaniak@17053 74 # Config
al@16703 75 cp $stuff/mplayer.conf $fs/etc/mplayer
psychomaniak@17053 76 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
psychomaniak@17056 77 mkdir -p $fs/usr/share/applications
psychomaniak@17056 78 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
psychomaniak@17066 79 cp $src/etc/*menu.conf $fs/etc/mplayer
al@16703 80 # Font
psychomaniak@16994 81 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
psychomaniak@18352 82 }