wok-next view mplayer/receipt @ rev 21321
updated lazarus (1.6.0-0 -> 2.0.6)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Dec 11 14:09:34 2019 +0100 (2019-12-11) |
parents | ea9e52516fb0 |
children | 3024edbf8c9f |
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 libxv-dev libtheora-dev \
15 alsa-lib-dev ncurses-dev lame-dev libxdamage-dev giflib-dev \
16 libxxf86vm-dev esound-dev audiofile-dev libogg-dev libvorbis-dev \
17 xvidcore-dev zlib-dev 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 libxv libtheora alsa-lib \
71 ncurses lame libxdamage giflib enca lirc libxxf86vm \
72 esound libmng audiofile libvorbis libogg zlib xvidcore x264 \
73 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 libpng giflib enca lirc"
81 ;;
82 esac
83 }