wok-next view mplayer-cli/receipt @ rev 20454

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