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

Up gaupol (0.19.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 10 09:34:55 2014 +0200 (2014-10-10)
parents 0dcc74d5b8f2
children 41d91b6fdec6
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 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
11 HOST_ARCH="i486 arm"
13 DEPENDS="libmad xorg-libXv alsa-lib cdparanoia-III giflib ncurses \
14 enca xorg-libXdamage xorg-libXxf86vm zlib xorg-libXss"
15 BUILD_DEPENDS="libmad-dev xorg-libXv-dev alsa-lib-dev \
16 ncurses-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
17 audiofile-dev libogg-dev zlib-dev xorg-xextproto pkg-config yasm"
19 # Handle arch package install. Less deps and no GTK gui
20 case "$SLITAZ_ARCH" in
21 arm*)
22 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
23 libvorbis libtheora libsdl" ;;
24 esac
26 # Handle cross compilation. Host coreutils-file-* are used
27 case "$ARCH" in
28 i?86)
29 ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection"
30 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev" ;;
31 arm*)
32 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
33 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
34 esac
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 rm -rf $WOK/$PACKAGE/source/ && mkdir -p $WOK/$PACKAGE/source/
40 ln -s $WOK/$SOURCE/source/$SOURCE-$VERSION \
41 $WOK/$PACKAGE/source/$PACKAGE-$VERSION &&
42 cd $src &&
43 ./configure \
44 --prefix=/usr \
45 --confdir=/etc/mplayer \
46 --libdir=/usr/lib/mplayer \
47 --language="en de es fr it pl ru" \
48 --enable-menu \
49 --disable-mencoder \
50 --disable-gl \
51 --disable-jack \
52 --disable-liblzo \
53 --disable-libdv \
54 --disable-fribidi \
55 --disable-ivtv \
56 --disable-smb \
57 --disable-ftp \
58 --disable-openal \
59 --disable-faac \
60 --disable-speex --disable-esd \
61 --disable-lirc --disable-lircc \
62 ${ARCH_ARGS} &&
63 make $MAKEFLAGS &&
64 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p $fs/usr/share/mplayer
71 cp -a $install/usr/bin $fs/usr
72 cp -a $install/etc $fs
73 cp $src/etc/example.conf $fs/etc/mplayer
74 # Add /etc/mplayer/input.conf
75 cp $stuff/input.conf $fs/etc/mplayer
76 # Config
77 cp $stuff/mplayer.conf $fs/etc/mplayer
78 # No-gui, OSD ($username@slitaz:~$ mplayer -menu filename)
79 mkdir -p $fs/usr/share/applications
80 cp -f $stuff/mplayer.desktop $fs/usr/share/applications/mplayer.desktop
81 cp $src/etc/*menu.conf $fs/etc/mplayer
82 # Font
83 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
84 }