wok diff mplayer-cli/receipt @ rev 19794

zerofree: add -lcom_err
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 23 11:10:10 2017 +0100 (2017-02-23)
parents
children 7027755306af
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mplayer-cli/receipt	Thu Feb 23 11:10:10 2017 +0100
     1.3 @@ -0,0 +1,73 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mplayer-cli"
     1.7 +VERSION="1.1.1"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="The Ultimate Movie Player For Linux (with minimal depends)"
    1.10 +MAINTAINER="psychomaniak@xakep.ru"
    1.11 +LICENSE="GPL2"
    1.12 +SOURCE="MPlayer"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.xz"
    1.14 +WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
    1.15 +WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
    1.16 +HOST_ARCH="i486 arm"
    1.17 +
    1.18 +# CONFIG_FILES="/etc/mplayer" # use ~/ instead
    1.19 +
    1.20 +DEPENDS="xorg-libXv alsa-lib giflib ncurses fontconfig libmad libsdl \
    1.21 +libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
    1.22 +BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \
    1.23 +xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \
    1.24 +freetype-dev fontconfig-dev zlib-dev pkg-config yasm libmad-dev"
    1.25 +PROVIDE="mplayer"
    1.26 +
    1.27 +# Handle cross compilation. Host coreutils-file-* are used
    1.28 +case "$ARCH" in
    1.29 +	i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
    1.30 +	arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
    1.31 +esac
    1.32 +
    1.33 +# Rules to configure and make the package.
    1.34 +compile_rules()
    1.35 +{
    1.36 +	./configure \
    1.37 +		--prefix=/usr \
    1.38 +		--confdir=/etc/mplayer \
    1.39 +		--libdir=/usr/lib/mplayer \
    1.40 +		--language="en de es fr it pl ru" \
    1.41 +		--enable-menu \
    1.42 +		--disable-mencoder \
    1.43 +		--disable-gl \
    1.44 +		--disable-jack \
    1.45 +		--disable-liblzo \
    1.46 +		--disable-libdv \
    1.47 +		--disable-fribidi \
    1.48 +		--disable-ivtv \
    1.49 +		--disable-smb \
    1.50 +		--disable-openal \
    1.51 +		--disable-faac \
    1.52 +		--disable-speex --disable-esd \
    1.53 +		--disable-lirc --disable-lircc \
    1.54 +		${ARCH_ARGS} &&
    1.55 +	make $MAKEFLAGS &&
    1.56 +	make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
    1.57 +}
    1.58 +
    1.59 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.60 +genpkg_rules()
    1.61 +{
    1.62 +	mkdir -p $fs/usr/share/mplayer
    1.63 +	cp -a $install/usr/bin $fs/usr
    1.64 +	cp -a $install/etc $fs
    1.65 +	cp $src/etc/example.conf $fs/etc/mplayer
    1.66 +	# Add /etc/mplayer/input.conf
    1.67 +	cp $stuff/input.conf $fs/etc/mplayer
    1.68 +	# Config
    1.69 +	cp $stuff/mplayer.conf $fs/etc/mplayer
    1.70 +	# No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
    1.71 +	mkdir -p $fs/usr/share/applications
    1.72 +	cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
    1.73 +	cp $src/etc/*menu.conf $fs/etc/mplayer
    1.74 +	# Font
    1.75 +	cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
    1.76 +}