wok annotate mplayer-cli/receipt @ rev 20074

syslinux: shrink i18n.cfg (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 24 21:46:04 2017 +0200 (2017-09-24)
parents
children 7027755306af
rev   line source
psychomaniak@19558 1 # SliTaz package receipt.
psychomaniak@19558 2
psychomaniak@19558 3 PACKAGE="mplayer-cli"
psychomaniak@19558 4 VERSION="1.1.1"
psychomaniak@19558 5 CATEGORY="multimedia"
psychomaniak@19558 6 SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)"
psychomaniak@19558 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@19558 8 LICENSE="GPL2"
psychomaniak@19558 9 SOURCE="MPlayer"
psychomaniak@19558 10 TARBALL="$SOURCE-$VERSION.tar.xz"
psychomaniak@19558 11 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
psychomaniak@19558 12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
psychomaniak@19558 13 HOST_ARCH="i486 arm"
psychomaniak@19558 14
psychomaniak@19558 15 # CONFIG_FILES="/etc/mplayer" # use ~/ instead
psychomaniak@19558 16
psychomaniak@19558 17 DEPENDS="xorg-libXv alsa-lib giflib ncurses fontconfig libmad libsdl \
psychomaniak@19558 18 libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
psychomaniak@19558 19 BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \
psychomaniak@19558 20 xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \
psychomaniak@19558 21 freetype-dev fontconfig-dev zlib-dev pkg-config yasm libmad-dev"
psychomaniak@19558 22 PROVIDE="mplayer"
psychomaniak@19558 23
psychomaniak@19558 24 # Handle cross compilation. Host coreutils-file-* are used
psychomaniak@19558 25 case "$ARCH" in
psychomaniak@19558 26 i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
psychomaniak@19558 27 arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
psychomaniak@19558 28 esac
psychomaniak@19558 29
psychomaniak@19558 30 # Rules to configure and make the package.
psychomaniak@19558 31 compile_rules()
psychomaniak@19558 32 {
psychomaniak@19558 33 ./configure \
psychomaniak@19558 34 --prefix=/usr \
psychomaniak@19558 35 --confdir=/etc/mplayer \
psychomaniak@19558 36 --libdir=/usr/lib/mplayer \
psychomaniak@19558 37 --language="en de es fr it pl ru" \
psychomaniak@19558 38 --enable-menu \
psychomaniak@19558 39 --disable-mencoder \
psychomaniak@19558 40 --disable-gl \
psychomaniak@19558 41 --disable-jack \
psychomaniak@19558 42 --disable-liblzo \
psychomaniak@19558 43 --disable-libdv \
psychomaniak@19558 44 --disable-fribidi \
psychomaniak@19558 45 --disable-ivtv \
psychomaniak@19558 46 --disable-smb \
psychomaniak@19558 47 --disable-openal \
psychomaniak@19558 48 --disable-faac \
psychomaniak@19558 49 --disable-speex --disable-esd \
psychomaniak@19558 50 --disable-lirc --disable-lircc \
psychomaniak@19558 51 ${ARCH_ARGS} &&
psychomaniak@19558 52 make $MAKEFLAGS &&
psychomaniak@19558 53 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
psychomaniak@19558 54 }
psychomaniak@19558 55
psychomaniak@19558 56 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@19558 57 genpkg_rules()
psychomaniak@19558 58 {
psychomaniak@19558 59 mkdir -p $fs/usr/share/mplayer
psychomaniak@19558 60 cp -a $install/usr/bin $fs/usr
psychomaniak@19558 61 cp -a $install/etc $fs
psychomaniak@19558 62 cp $src/etc/example.conf $fs/etc/mplayer
psychomaniak@19558 63 # Add /etc/mplayer/input.conf
psychomaniak@19558 64 cp $stuff/input.conf $fs/etc/mplayer
psychomaniak@19558 65 # Config
psychomaniak@19558 66 cp $stuff/mplayer.conf $fs/etc/mplayer
psychomaniak@19558 67 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
psychomaniak@19558 68 mkdir -p $fs/usr/share/applications
psychomaniak@19558 69 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
psychomaniak@19558 70 cp $src/etc/*menu.conf $fs/etc/mplayer
psychomaniak@19558 71 # Font
psychomaniak@19558 72 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
psychomaniak@19558 73 }