wok view mplayer/receipt @ rev 16268

ARM: add libsexy libsndfile
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 05 20:04:34 2014 +0200 (2014-04-05)
parents bb009a6ef036
children 8139105f9285
line source
1 # SliTaz package receipt.
3 PACKAGE="mplayer"
4 VERSION="1.1.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="The Ultimate Movie Player For Linux."
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 RELATED="mplayer-codecs mencoder" # Dont forget to update them
16 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \
17 lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \
18 libvorbis libogg xvidcore x264 zlib xorg-libXss"
19 BUILD_DEPENDS="gtk+-dev cdparanoia-III-dev libmad-dev xorg-libXv-dev \
20 libtheora-dev alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev \
21 giflib-dev enca-dev lirc-dev xorg-libXxf86vm-dev esound-dev libmng-dev \
22 audiofile-dev x264-dev libogg-dev libvorbis-dev xvidcore-dev zlib-dev \
23 xorg-xextproto pkg-config yasm"
25 # Handle arch package install. Less deps and no GTK gui for ARM
26 case "$SLITAZ_ARCH" in
27 arm*) DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
28 libvorbis libtheora libsdl xvidcore lame esound" ;;
29 esac
31 # Handle cross compilation. Host coreutils-file-* are used
32 case "$ARCH" in
33 i?86)
34 ARCH_ARGS="--target=i386-linux --enable-gui --disable-sdl" ;;
35 arm*)
36 BUILD_DEPENDS="alsa-lib-dev zlib-dev libmad-dev xorg-libXv-dev \
37 xorg-libXxf86vm-dev libogg-dev libvorbis-dev libsdl-dev xvidcore-dev lame-dev \
38 libtheora-dev esound-dev"
39 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
40 esac
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 ./configure \
46 --prefix=/usr \
47 --confdir=/etc/mplayer \
48 --libdir=/usr/lib/mplayer \
49 --language="en de es fr it ru" \
50 --disable-mmx \
51 --disable-mmxext \
52 --disable-3dnow \
53 --disable-3dnowext \
54 --disable-sse \
55 --disable-sse2 \
56 --disable-ssse3 \
57 --disable-fastmemcpy \
58 --disable-gl \
59 --disable-jack \
60 --disable-liblzo \
61 --disable-libdv \
62 --disable-fribidi \
63 --disable-ivtv \
64 --disable-smb \
65 --disable-ftp \
66 --disable-openal \
67 --disable-faac \
68 --disable-speex \
69 ${ARCH_ARGS} &&
70 make $MAKEFLAGS &&
71 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
72 }
74 # Rules to gen a SliTaz package suitable for Tazpkg.
75 genpkg_rules()
76 {
77 mkdir -p $fs/usr/share/mplayer/skins
78 cp -a $install/usr/bin $fs/usr
79 # Mencoder goes in a splited package.
80 rm $fs/usr/bin/mencoder
81 [ -d "$install/usr/share/mplayer" ] && \
82 cp -a $install/usr/share/mplayer $fs/usr/share
83 cp -a $install/etc $fs
84 cp $src/etc/example.conf $fs/etc/mplayer
85 # Config to use Xv by default.
86 cp $stuff/mplayer.conf $fs/etc/mplayer
87 # default skin
88 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
89 cd $fs/usr/share/mplayer/skins && ln -s productive default
90 # Font
91 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
92 # Xv support dont work for ARM
93 case "$ARCH" in
94 arm*) cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf ;;
95 esac
96 }