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