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

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents dd145c435e4b
children d43bf7aae921
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="xorg-libXv alsa-lib giflib ncurses fontconfig libmad \
17 libxml2 pcre libpng16 xorg-libXdamage xorg-libXxf86vm zlib xorg-libXScrnSaver \
18 libsdl libgnutls"
19 BUILD_DEPENDS="ncurses-dev xorg-libXv-dev alsa-lib-dev xorg-libXdamage-dev \
20 giflib-dev xorg-libXxf86vm-dev xorg-xextproto freetype-dev fontconfig-dev \
21 zlib-dev pkg-config yasm libmad-dev libsdl-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 }