wok-next view mplayer/receipt @ rev 21376
updated mplayer (1.1.1 -> 1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 14:12:03 2020 +0100 (2020-04-16) |
parents | 5669e8b3be70 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mplayer"
4 VERSION="1.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="The Ultimate Movie Player For Linux"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.mplayerhq.hu/design7/news.html"
11 TARBALL="MPlayer-$VERSION.tar.xz"
12 WGET_URL="https://mplayerhq.hu/MPlayer/releases/$TARBALL"
14 BUILD_DEPENDS="alsa-lib-dev audiofile-dev cdparanoia-dev enca-dev
15 esound-dev giflib-dev gtk2-dev lame-dev libmad-dev libmng-dev
16 libogg-dev libtheora-dev libvorbis-dev libxdamage-dev
17 libxv-dev libxxf86vm-dev lirc-dev ncurses-dev x264-dev
18 xorgproto xvidcore-dev yasm zlib-dev"
19 SPLIT="mencoder"
21 compile_rules()
22 {
23 # Handle cross compilation. Host coreutils-file-* are used
24 case "$ARCH" in
25 i?86)
26 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection"
27 ;;
28 esac
30 ./configure \
31 --prefix=/usr \
32 --confdir=/etc/mplayer \
33 --libdir=/usr/lib/mplayer \
34 --enable-gui \
35 --language="en de es fr it ru" \
36 --disable-gl \
37 --disable-jack \
38 --disable-liblzo \
39 --disable-libdv \
40 --disable-fribidi \
41 --disable-ivtv \
42 --disable-smb \
43 --disable-ftp \
44 --disable-openal \
45 --disable-faac \
46 --disable-speex \
47 ${ARCH_ARGS} &&
48 make $MAKEFLAGS &&
49 make DESTDIR=$install install
50 }
52 genpkg_rules()
53 {
54 case $PACKAGE in
55 mplayer)
56 mkdir -p $fs/usr/share/mplayer/skins
57 cp -a $install/usr/bin $fs/usr
59 # Mencoder goes in a splitted package.
60 rm $fs/usr/bin/mencoder
61 [ -d "$install/usr/share/mplayer" ] &&
62 cp -a $install/usr/share/mplayer $fs/usr/share
63 cp -a $install/etc $fs
64 cp $src/etc/example.conf $fs/etc/mplayer
66 # Configure to use Xv by default.
67 cp $stuff/mplayer.conf $fs/etc/mplayer
69 # default skin
70 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
71 cd $fs/usr/share/mplayer/skins && ln -s productive default
73 # Font
74 cd ..
75 ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
77 DEPENDS="alsa-lib audiofile cdparanoia enca esound giflib gtk2 lame
78 libmad libmng libogg libtheora libxdamage libxscrnsaver libxxf86vm
79 libvorbis libxv lirc ncurses x264 xvidcore zlib"
80 ;;
81 mencoder)
82 copy /usr/bin/mencoder
83 CAT="multimedia|video and movie encoder"
85 DEPENDS="alsa-lib cdparanoia enca expat fontconfig freetype giflib
86 jpeg lame libmad libogg libpng libtheora libvorbis lirc ncurses
87 x264 xvidcore zlib"
88 ;;
89 esac
90 }