wok-next view mplayer/receipt @ rev 21070
Rename cdparanoia
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Dec 12 02:29:05 2018 +0200 (2018-12-12) |
parents | d5aab818505e |
children | 5669e8b3be70 |
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="devel@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="gtk2-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-xorgproto yasm cdparanoia-dev \
18 x264-dev enca-dev libmng-dev lirc-dev"
19 SPLIT="mencoder"
21 compile_rules() {
22 # Handle cross compilation. Host coreutils-file-* are used
23 case "$ARCH" in
24 i?86)
25 ARCH_ARGS="--target=i386-linux --disable-sdl --enable-runtime-cpudetection"
26 ;;
27 esac
29 ./configure \
30 --prefix=/usr \
31 --confdir=/etc/mplayer \
32 --libdir=/usr/lib/mplayer \
33 --enable-gui \
34 --language="en de es fr it ru" \
35 --disable-gl \
36 --disable-jack \
37 --disable-liblzo \
38 --disable-libdv \
39 --disable-fribidi \
40 --disable-ivtv \
41 --disable-smb \
42 --disable-ftp \
43 --disable-openal \
44 --disable-faac \
45 --disable-speex \
46 ${ARCH_ARGS} &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$install install
49 }
51 genpkg_rules() {
52 case $PACKAGE in
53 mplayer)
54 mkdir -p $fs/usr/share/mplayer/skins
55 cp -a $install/usr/bin $fs/usr
56 # Mencoder goes in a splited package.
57 rm $fs/usr/bin/mencoder
58 [ -d "$install/usr/share/mplayer" ] &&
59 cp -a $install/usr/share/mplayer $fs/usr/share
60 cp -a $install/etc $fs
61 cp $src/etc/example.conf $fs/etc/mplayer
62 # Config to use Xv by default.
63 cp $stuff/mplayer.conf $fs/etc/mplayer
64 # default skin
65 tar xjf $stuff/productive-1.0.tar.bz2 -C $fs/usr/share/mplayer/skins
66 cd $fs/usr/share/mplayer/skins && ln -s productive default
67 # Font
68 cd ..
69 ln -s ../fonts/truetype/ttf-dejavu/DejaVuSans.ttf subfont.ttf
70 DEPENDS="gtk2 cdparanoia libmad xorg-libXv libtheora alsa-lib \
71 ncurses lame xorg-libXdamage giflib enca lirc xorg-libXxf86vm \
72 esound libmng audiofile libvorbis libogg zlib xvidcore x264 \
73 xorg-libXScrnSaver"
74 ;;
75 mencoder)
76 copy /usr/bin/mencoder
77 CAT="multimedia|video and movie encoder"
78 DEPENDS="libtheora alsa-lib cdparanoia expat libogg libvorbis \
79 fontconfig freetype x264 xvidcore jpeg libmad ncurses zlib lame \
80 libpng16 giflib enca lirc"
81 ;;
82 esac
83 }