wok view mplayer-opt/receipt @ rev 17004

Add libjson-c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 12 13:24:09 2014 +0200 (2014-08-12)
parents 7d92302eb790
children 0cef0efb4df7
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="pankso@slitaz.org"
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 libmng 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 GENERIC_MENUS="no"
23 # Handle arch package install. Less deps and no GTK gui
24 case "$SLITAZ_ARCH" in
25 arm*)
26 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
27 libvorbis libtheora libsdl" ;;
28 esac
30 # Handle cross compilation. Host coreutils-file-* are used
31 case "$ARCH" in
32 i?86)
33 ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection"
34 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev enca-dev libmng-dev" ;;
35 arm*)
36 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
37 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
38 esac
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 ./configure \
44 --prefix=/usr \
45 --confdir=/etc/mplayer \
46 --libdir=/usr/lib/mplayer \
47 --language="en de es fr it pl ru" \
48 --disable-mencoder \
49 --disable-gl \
50 --disable-jack \
51 --disable-liblzo \
52 --disable-libdv \
53 --disable-fribidi \
54 --disable-ivtv \
55 --disable-smb \
56 --disable-ftp \
57 --disable-openal \
58 --disable-faac \
59 --disable-speex --disable-esd \
60 --disable-lirc --disable-lircc \
61 ${ARCH_ARGS} &&
62 make $MAKEFLAGS &&
63 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 mkdir -p $fs/usr/share/mplayer
70 cp -a $install/usr/bin $fs/usr
71 cp -a $install/etc $fs
72 cp $src/etc/example.conf $fs/etc/mplayer
73 # Add /etc/mplayer/input.conf
74 cp $stuff/input.conf $fs/etc/mplayer
75 # Config to use Xv by default.
76 cp $stuff/mplayer.conf $fs/etc/mplayer
77 # No-gui
78 cp $stuff/mplayer.desktop $fs/usr/share/applications
79 # Font
80 cd $fs/usr/share/mplayer && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
81 # Xv support dont work for ARM and gmplayer symlink not created
82 case "$ARCH" in
83 arm*)
84 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
85 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
86 esac
87 }