wok view mplayer/receipt @ rev 19920
memtest: VCPI support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 19 22:14:58 2017 +0200 (2017-04-19) |
parents | af8a8f177c6c |
children | b65ca8c01464 |
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 export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
40 BUILD_DEPENDS="$BUILD_DEPENDS libsdl-dev"
41 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl" ;;
42 esac
44 # Rules to configure and make the package.
45 compile_rules()
46 {
47 ./configure \
48 --prefix=/usr \
49 --confdir=/etc/mplayer \
50 --libdir=/usr/lib/mplayer \
51 --enable-gui \
52 --language="en de es fr it ru" \
53 --disable-gl \
54 --disable-jack \
55 --disable-liblzo \
56 --disable-libdv \
57 --disable-fribidi \
58 --disable-ivtv \
59 --disable-smb \
60 --disable-ftp \
61 --disable-openal \
62 --disable-faac \
63 --disable-speex \
64 ${ARCH_ARGS} &&
65 make $MAKEFLAGS &&
66 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 mkdir -p $fs/usr/share/mplayer/skins
73 cp -a $install/usr/bin $fs/usr
74 # Mencoder goes in a splited package.
75 rm $fs/usr/bin/mencoder
76 [ -d "$install/usr/share/mplayer" ] && \
77 cp -a $install/usr/share/mplayer $fs/usr/share
78 cp -a $install/etc $fs
79 cp $src/etc/example.conf $fs/etc/mplayer
80 # Config to use Xv by default.
81 cp $stuff/mplayer.conf $fs/etc/mplayer
82 # default skin
83 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
84 cd $fs/usr/share/mplayer/skins && ln -s productive default
85 # Font
86 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
87 # Xv support dont work for ARM and gmplayer symlink not created
88 case "$ARCH" in
89 arm*)
90 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
91 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
92 esac
93 }