wok view mplayer/receipt @ rev 16300
Up: xfce4-panel (4.11.0)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Apr 07 08:45:15 2014 +0000 (2014-04-07) |
parents | 4011b51eb28e |
children | faae0e0e6eab |
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 # Dont forget to update all related pkgs
16 RELATED="mplayer-codecs mencoder"
17 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib ncurses \
18 lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm esound libmng \
19 audiofile libvorbis libogg xvidcore x264 zlib xorg-libXss"
20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev \
21 alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev \
22 xorg-libXxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \
23 xvidcore-dev zlib-dev 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" ;;
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 ./configure \
47 --prefix=/usr \
48 --confdir=/etc/mplayer \
49 --libdir=/usr/lib/mplayer \
50 --language="en de es fr it ru" \
51 --disable-mmx \
52 --disable-mmxext \
53 --disable-3dnow \
54 --disable-3dnowext \
55 --disable-sse \
56 --disable-sse2 \
57 --disable-ssse3 \
58 --disable-fastmemcpy \
59 --disable-gl \
60 --disable-jack \
61 --disable-liblzo \
62 --disable-libdv \
63 --disable-fribidi \
64 --disable-ivtv \
65 --disable-smb \
66 --disable-ftp \
67 --disable-openal \
68 --disable-faac \
69 --disable-speex \
70 --enable-gui \
71 ${ARCH_ARGS} &&
72 make $MAKEFLAGS &&
73 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
74 }
76 # Rules to gen a SliTaz package suitable for Tazpkg.
77 genpkg_rules()
78 {
79 mkdir -p $fs/usr/share/mplayer/skins
80 cp -a $install/usr/bin $fs/usr
81 # Mencoder goes in a splited package.
82 rm $fs/usr/bin/mencoder
83 [ -d "$install/usr/share/mplayer" ] && \
84 cp -a $install/usr/share/mplayer $fs/usr/share
85 cp -a $install/etc $fs
86 cp $src/etc/example.conf $fs/etc/mplayer
87 # Config to use Xv by default.
88 cp $stuff/mplayer.conf $fs/etc/mplayer
89 # default skin
90 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
91 cd $fs/usr/share/mplayer/skins && ln -s productive default
92 # Font
93 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
94 # Xv support dont work for ARM
95 case "$ARCH" in
96 arm*) cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf ;;
97 esac
98 }