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

Rename linux-util-ng to util-linux in all packages
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 23 16:30:27 2012 +0200 (2012-04-23)
parents 8e4c74abdf74
children d05e40770902
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 lcms"
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-uuid-dev libxcb-dev lcms-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 $MAKEFLAGS &&
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 }