wok-next view mplayer/receipt @ rev 18887

Up firefox-official(44.0.2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Feb 12 15:47:40 2016 +0200 (2016-02-12)
parents 8417cbe6fdae
children 2282cb3628dd
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 zlib xvidcore x264 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 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 --enable-runtime-cpudetection"
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 --enable-gui \
51 --language="en de es fr it ru" \
52 --disable-gl \
53 --disable-jack \
54 --disable-liblzo \
55 --disable-libdv \
56 --disable-fribidi \
57 --disable-ivtv \
58 --disable-smb \
59 --disable-ftp \
60 --disable-openal \
61 --disable-faac \
62 --disable-speex \
63 ${ARCH_ARGS} &&
64 make $MAKEFLAGS &&
65 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 mkdir -p $fs/usr/share/mplayer/skins
72 cp -a $install/usr/bin $fs/usr
73 # Mencoder goes in a splited package.
74 rm $fs/usr/bin/mencoder
75 [ -d "$install/usr/share/mplayer" ] && \
76 cp -a $install/usr/share/mplayer $fs/usr/share
77 cp -a $install/etc $fs
78 cp $src/etc/example.conf $fs/etc/mplayer
79 # Config to use Xv by default.
80 cp $stuff/mplayer.conf $fs/etc/mplayer
81 # default skin
82 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
83 cd $fs/usr/share/mplayer/skins && ln -s productive default
84 # Font
85 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
86 # Xv support dont work for ARM and gmplayer symlink not created
87 case "$ARCH" in
88 arm*)
89 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
90 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
91 esac
92 }