wok view mplayer-opt/receipt @ rev 16974

some fixes to previous commits
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Aug 05 15:58:00 2014 +0200 (2014-08-05)
parents f520133fcbf4
children 03f6246616fd
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 \
18 xorg-libXdamage giflib enca xorg-libXxf86vm libmng audiofile \
19 libogg zlib xorg-libXss"
20 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev alsa-lib-dev \
21 ncurses-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 --enable-gui \
54 --language="en de es fr it pl ru" \
55 --enable-runtime-cpudetection \
56 --disable-mencoder \
57 --disable-gl \
58 --disable-jack \
59 --disable-liblzo \
60 --disable-libdv \
61 --disable-fribidi \
62 --disable-ivtv \
63 --disable-smb \
64 --disable-ftp \
65 --disable-openal \
66 --disable-faac \
67 --disable-speex --disable-esd \
68 --disable-lirc --disable-lircc \
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 [ -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 # Add /etc/mplayer/input.conf
84 cp $stuff/input.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 and gmplayer symlink not created
93 case "$ARCH" in
94 arm*)
95 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
96 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
97 esac
98 }