wok-next view mplayer-cli/receipt @ rev 19725
Up lives (2.8.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 25 11:14:35 2017 +0200 (2017-05-25) |
parents | |
children | ea3c4b76ea5d |
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-cli"
4 VERSION="1.1.1"
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"
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"
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 }