wok-current view xine-lib/receipt @ rev 10397

xine-lib: we dont even want vcd
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 24 02:26:22 2011 +0200 (2011-05-24)
parents 99abf916fd05
children 1eb66ff13d48
line source
1 # SliTaz package receipt.
3 PACKAGE="xine-lib"
4 VERSION="1.1.19"
5 CATEGORY="multimedia"
6 SHORT_DESC="Xine video library."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="faad2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.xine-project.org/"
11 WGET_URL="http://switch.dl.sourceforge.net/sourceforge/xine/$TARBALL"
13 DEPENDS="xorg zlib xorg-libXv xorg-libXvMC alsa-lib libogg libvorbis \
14 libtheora xorg-libXvMC xorg-libXv libmodplug libmng"
15 BUILD_DEPENDS="xorg-libXvMC-dev xorg-libXv-dev xorg-xextproto xorg-videoproto \
16 alsa-lib-dev libogg-dev libmodplug-dev libvorbis-dev libtheora-dev freetype-dev \
17 faad2-dev perl pkg-config util-linux-ng-uuid-dev libxcb-dev"
19 # Rules to configure and make the package.
20 #
21 # Using --with-external-ffmpeg will make package smaller, but it dont seems
22 # to work properly. Last try with external ffmpeg make xine unable to read avi
23 # and other video files.
24 #
25 compile_rules()
26 {
27 cd $src
28 sed -i 's/grep -x/grep/' configure
29 grep -qs 'define u8' src/input/vcd/libcdio/_cdio_linux.c ||
30 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
31 src/input/vcd/libcdio/_cdio_linux.c
32 patch -p0 < $stuff/xine-lib-1.1.19-xvmc.patch
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --with-freetype \
38 --without-jack \
39 --without-imagemagick \
40 --without-sdl \
41 --disable-gnomevfs \
42 --disable-samba \
43 --disable-glu \
44 --disable-opengl \
45 --disable-fb \
46 --disable-syncfb \
47 --without-esound \
48 --disable-vcd \
49 $CONFIGURE_ARGS &&
50 make -j 4 &&
51 make DESTDIR=$PWD/_pkg install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/lib $fs/usr/share
58 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
59 cp -a $_pkg/usr/lib/xine $fs/usr/lib
61 # Do we need extra Fonts for subtitle support? \
62 # compiled with freetype for using ttf fonts, xine fonts are only an alternative solution \
63 # should we just ln DejavuSans as in mplayer?
64 # lets keep sans font for extra support
65 mkdir -p $fs/usr/share/xine/libxine1/fonts/
66 cp -a $_pkg/usr/share/xine/libxine1/fonts/sa* $fs/usr/share/xine/libxine1/fonts/
67 }