wok-current view mplayer-opt/receipt @ rev 16900
libpng: sec. CVE-2011-3048 CVE-2012-3386 & MemLeak fixes,oth.. Up from 1.2.47 to 1.2.51
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Jul 15 02:56:01 2014 +0300 (2014-07-15) |
parents | 29445231de92 |
children | e3f9d39ae109 |
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 alsa-lib ncurses lame \
18 xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng audiofile \
19 libogg zlib xorg-libXss"
20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev alsa-lib-dev \
21 ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev xorg-libXxf86vm-dev \
22 esound-dev audiofile-dev libogg-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=i486-linux --disable-sdl"
36 BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-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 --enable-runtime-cpudetection \
55 --disable-mencoder \
56 --disable-gl \
57 --disable-jack \
58 --disable-liblzo \
59 --disable-libdv \
60 --disable-fribidi \
61 --disable-ivtv \
62 --disable-smb \
63 --disable-ftp \
64 --disable-openal \
65 --disable-faac \
66 --disable-speex \
67 --enable-gui \
68 ${ARCH_ARGS} &&
69 make $MAKEFLAGS &&
70 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
71 }
73 # Rules to gen a SliTaz package suitable for Tazpkg.
74 genpkg_rules()
75 {
76 mkdir -p $fs/usr/share/mplayer/skins
77 cp -a $install/usr/bin $fs/usr
78 # Mencoder goes in a splited package.
79 rm $fs/usr/bin/mencoder
80 [ -d "$install/usr/share/mplayer" ] && \
81 cp -a $install/usr/share/mplayer $fs/usr/share
82 cp -a $install/etc $fs
83 cp $src/etc/example.conf $fs/etc/mplayer
84 # Config to use Xv by default.
85 cp $stuff/mplayer.conf $fs/etc/mplayer
86 # default skin
87 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
88 cd $fs/usr/share/mplayer/skins && ln -s productive default
89 # Font
90 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
91 # Xv support dont work for ARM and gmplayer symlink not created
92 case "$ARCH" in
93 arm*)
94 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
95 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
96 esac
97 }