wok-current view mplayer-cli/receipt @ rev 22502

updated aspell-pt_BR (20080707-0 -> 20131030.12.0)
author Hans-G?nter Theisgen
date Wed Jan 01 09:58:39 2020 +0100 (2020-01-01)
parents 8dc6e13e2fba
children b703fd200c5c
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 libsdl \
18 libxml2 pcre libpng xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss libgnutls"
19 BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev libsdl-dev \
20 xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev xorg-xextproto \
21 freetype-dev fontconfig-dev zlib-dev pkg-config yasm libmad-dev gnutls-dev"
22 PROVIDE="mplayer"
24 # Handle cross compilation. Host coreutils-file-* are used
25 case "$ARCH" in
26 i?86) ARCH_ARGS="--target=i486-linux --enable-runtime-cpudetection" ;;
27 arm*) ARCH_ARGS="--target=arm-linux --enable-cross-compile" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --confdir=/etc/mplayer \
36 --libdir=/usr/lib/mplayer \
37 --language="en de es fr it pl ru" \
38 --enable-menu \
39 --disable-mencoder \
40 --disable-gl \
41 --disable-jack \
42 --disable-liblzo \
43 --disable-libdv \
44 --disable-fribidi \
45 --disable-ivtv \
46 --disable-smb \
47 --disable-openal \
48 --disable-faac \
49 --disable-speex --disable-esd \
50 --disable-lirc --disable-lircc \
51 ${ARCH_ARGS} &&
52 make $MAKEFLAGS &&
53 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/share/mplayer
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/etc $fs
62 cp $src/etc/example.conf $fs/etc/mplayer
63 # Add /etc/mplayer/input.conf
64 cp $stuff/input.conf $fs/etc/mplayer
65 # Config
66 cp $stuff/mplayer.conf $fs/etc/mplayer
67 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
68 mkdir -p $fs/usr/share/applications
69 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
70 cp $src/etc/*menu.conf $fs/etc/mplayer
71 # Font
72 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
73 }