wok view mplayer-opt/receipt @ rev 16713

sakura: add patch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 29 10:48:34 2014 +0300 (2014-05-29)
parents 9ec6fb98bb16
children 29445231de92
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 CPU optimizations)"
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 # Dont forget to update all related pkgs
16 RELATED="mplayer-codecs mencoder"
17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses lame \
18 xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \
19 libvorbis libogg xvidcore x264 zlib xorg-libXss"
20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev alsa-lib-dev \
21 ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
22 esound-dev audiofile-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*)
28 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm libogg \
29 libvorbis libtheora libsdl xvidcore lame esound gtk+" ;;
30 esac
32 # Handle cross compilation. Host coreutils-file-* are used
33 case "$ARCH" in
34 i?86)
35 ARCH_ARGS="--target=i386-linux --disable-sdl"
36 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev x264-dev enca-dev \
37 libmng-dev lirc-dev" ;;
38 arm*)
39 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
40 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
41 esac
43 # Rules to configure and make the package.
44 compile_rules()
45 {
46 # just remove next configure options:
47 # --disable-mmx --disable-mmxext --disable-3dnow --disable-3dnowext
48 # --disable-sse --disable-sse2 --disable-ssse3
49 ./configure \
50 --prefix=/usr \
51 --confdir=/etc/mplayer \
52 --libdir=/usr/lib/mplayer \
53 --language="en de es fr it pl ru" \
54 --disable-fastmemcpy \
55 --disable-gl \
56 --disable-jack \
57 --disable-liblzo \
58 --disable-libdv \
59 --disable-fribidi \
60 --disable-ivtv \
61 --disable-smb \
62 --disable-ftp \
63 --disable-openal \
64 --disable-faac \
65 --disable-speex \
66 --enable-gui \
67 ${ARCH_ARGS} &&
68 make $MAKEFLAGS &&
69 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
70 }
72 # Rules to gen a SliTaz package suitable for Tazpkg.
73 genpkg_rules()
74 {
75 mkdir -p $fs/usr/share/mplayer/skins
76 cp -a $install/usr/bin $fs/usr
77 # Mencoder goes in a splited package.
78 rm $fs/usr/bin/mencoder
79 [ -d "$install/usr/share/mplayer" ] && \
80 cp -a $install/usr/share/mplayer $fs/usr/share
81 cp -a $install/etc $fs
82 cp $src/etc/example.conf $fs/etc/mplayer
83 # Config to use Xv by default.
84 cp $stuff/mplayer.conf $fs/etc/mplayer
85 # default skin
86 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
87 cd $fs/usr/share/mplayer/skins && ln -s productive default
88 # Font
89 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
90 # Xv support dont work for ARM and gmplayer symlink not created
91 case "$ARCH" in
92 arm*)
93 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
94 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
95 esac
96 }