wok-next view mplayer-opt/receipt @ rev 18796

Up make-slitaz-icons(160108): add stock icons needed by GTK+3 application Transmission
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 08 22:31:54 2016 +0200 (2016-01-08)
parents 8417cbe6fdae
children 9a9d8eb38212
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer-opt"
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 DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \
16 enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
17 BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \
18 ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
19 audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm"
21 # Handle arch package install. Less deps and no GTK gui
22 case "$SLITAZ_ARCH" in
23 arm*)
24 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
25 libvorbis libtheora libsdl" ;;
26 esac
28 # Handle cross compilation. Host coreutils-file-* are used
29 case "$ARCH" in
30 i?86)
31 ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection"
32 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev" ;;
33 arm*)
34 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
35 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
36 esac
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 ./configure \
42 --prefix=/usr \
43 --confdir=/etc/mplayer \
44 --libdir=/usr/lib/mplayer \
45 --language="en de es fr it pl ru" \
46 --enable-menu \
47 --disable-mencoder \
48 --disable-gl \
49 --disable-jack \
50 --disable-liblzo \
51 --disable-libdv \
52 --disable-fribidi \
53 --disable-ivtv \
54 --disable-smb \
55 --disable-ftp \
56 --disable-openal \
57 --disable-faac \
58 --disable-speex --disable-esd \
59 --disable-lirc --disable-lircc \
60 ${ARCH_ARGS} &&
61 make $MAKEFLAGS &&
62 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 mkdir -p $fs/usr/share/mplayer
69 cp -a $install/usr/bin $fs/usr
70 cp -a $install/etc $fs
71 cp $src/etc/example.conf $fs/etc/mplayer
72 # Add /etc/mplayer/input.conf
73 cp $stuff/input.conf $fs/etc/mplayer
74 # Config
75 cp $stuff/mplayer.conf $fs/etc/mplayer
76 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
77 mkdir -p $fs/usr/share/applications
78 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
79 cp $src/etc/*menu.conf $fs/etc/mplayer
80 # Font
81 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
82 }