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

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents d43bf7aae921
children 4e6503d7a19f
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"
14 # CONFIG_FILES="/etc/mplayer" # use ~/ instead
16 DEPENDS="alsa-lib bzlib fontconfig freetype giflib libgnutls libmad libpng16 \
17 libsdl ncurses xorg-libX11 xorg-libXext xorg-libXv xorg-libXxf86vm zlib"
18 BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev xorg-libXdamage-dev \
19 giflib-dev xorg-libXxf86vm-dev xorg-xextproto freetype-dev fontconfig-dev \
20 zlib-dev yasm libmad-dev libsdl-dev gnutls-dev"
21 PROVIDE="mplayer"
23 # Handle cross compilation. Host coreutils-file-* are used
24 case "$ARCH" in
25 i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
26 arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --confdir=/etc/mplayer \
35 --libdir=/usr/lib/mplayer \
36 --language="en de es fr it pl ru" \
37 --enable-menu \
38 --disable-mencoder \
39 --disable-gl \
40 --disable-jack \
41 --disable-liblzo \
42 --disable-libdv \
43 --disable-fribidi \
44 --disable-ivtv \
45 --disable-smb \
46 --disable-openal \
47 --disable-faac \
48 --disable-speex --disable-esd \
49 --disable-lirc --disable-lircc \
50 ${ARCH_ARGS} &&
51 make $MAKEFLAGS &&
52 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/share/mplayer
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/etc $fs
61 cp $src/etc/example.conf $fs/etc/mplayer
62 # Add /etc/mplayer/input.conf
63 cp $stuff/input.conf $fs/etc/mplayer
64 # Config
65 cp $stuff/mplayer.conf $fs/etc/mplayer
66 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
67 mkdir -p $fs/usr/share/applications
68 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
69 cp $src/etc/*menu.conf $fs/etc/mplayer
70 # Font
71 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
72 }