wok-next view mplayer/receipt @ rev 20715

Up nsd (4.1.21)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 13:10:46 2018 +0300 (2018-05-27)
parents c3a368c0cddb
children f99935f1778a
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.mplayerhq.hu/design7/news.html"
11 TARBALL="MPlayer-$VERSION.tar.xz"
12 WGET_URL="http://www1.mplayerhq.hu/MPlayer/releases/$TARBALL"
14 BUILD_DEPENDS_arm="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev \
15 alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev \
16 xorg-libXxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \
17 xvidcore-dev zlib-dev xorg-xextproto pkg-config yasm libsdl-dev"
18 BUILD_DEPENDS="gtk+-dev libmad-dev xorg-libXv-dev libtheora-dev \
19 alsa-lib-dev ncurses-dev lame-dev xorg-libXdamage-dev giflib-dev \
20 xorg-libXxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \
21 xvidcore-dev zlib-dev xorg-xextproto yasm cdparanoia-III-dev \
22 x264-dev enca-dev libmng-dev lirc-dev"
23 SPLIT="mencoder"
25 compile_rules() {
26 # Handle cross compilation. Host coreutils-file-* are used
27 case "$ARCH" in
28 i?86)
29 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection"
30 ;;
31 arm*)
32 export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
33 ARCH_ARGS="--target=arm-linux --enable-cross-compile --enable-sdl"
34 ;;
35 esac
37 ./configure \
38 --prefix=/usr \
39 --confdir=/etc/mplayer \
40 --libdir=/usr/lib/mplayer \
41 --enable-gui \
42 --language="en de es fr it ru" \
43 --disable-gl \
44 --disable-jack \
45 --disable-liblzo \
46 --disable-libdv \
47 --disable-fribidi \
48 --disable-ivtv \
49 --disable-smb \
50 --disable-ftp \
51 --disable-openal \
52 --disable-faac \
53 --disable-speex \
54 ${ARCH_ARGS} &&
55 make $MAKEFLAGS &&
56 make DESTDIR=$DESTDIR install | sed '/install: strip: .*/'d
57 }
59 genpkg_rules() {
60 case $PACKAGE in
61 mplayer)
62 mkdir -p $fs/usr/share/mplayer/skins
63 cp -a $install/usr/bin $fs/usr
64 # Mencoder goes in a splited package.
65 rm $fs/usr/bin/mencoder
66 [ -d "$install/usr/share/mplayer" ] && \
67 cp -a $install/usr/share/mplayer $fs/usr/share
68 cp -a $install/etc $fs
69 cp $src/etc/example.conf $fs/etc/mplayer
70 # Config to use Xv by default.
71 cp $stuff/mplayer.conf $fs/etc/mplayer
72 # default skin
73 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
74 cd $fs/usr/share/mplayer/skins && ln -s productive default
75 # Font
76 cd .. && ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
77 # Xv support dont work for ARM and gmplayer symlink not created
78 case "$ARCH" in
79 arm*)
80 cp -f $stuff/mplayer-arm.conf $fs/etc/mplayer/mplayer.conf
81 cd $fs/usr/bin && ln -s mplayer gmplayer ;;
82 esac
83 DEPENDS="gtk+ cdparanoia-III libmad xorg-libXv libtheora alsa-lib \
84 ncurses lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm \
85 esound libmng audiofile libvorbis libogg zlib xvidcore x264 \
86 xorg-libXScrnSaver"
87 # Handle arch package install. Less deps and no GTK gui for ARM
88 case "$SLITAZ_ARCH" in
89 arm*)
90 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm \
91 libogg libvorbis libtheora libsdl xvidcore lame esound gtk+"
92 ;;
93 esac
94 ;;
95 mencoder)
96 copy /usr/bin/mencoder
97 CAT="multimedia|video and movie encoder"
98 DEPENDS="libtheora alsa-lib cdparanoia-III expat libogg libvorbis \
99 fontconfig freetype x264 xvidcore jpeg libmad ncurses zlib lame \
100 libpng16 giflib enca lirc"
101 # Handle arch package install
102 case "$SLITAZ_ARCH" in
103 arm*)
104 DEPENDS="alsa-lib zlib libmad xorg-libXv xorg-libXxf86vm \
105 libogg libvorbis libtheora xvidcore lame esound"
106 ;;
107 esac
108 ;;
109 esac
110 }