wok-next view xine-lib/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | f351ed3c060e |
children | c652c3db460e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xine-lib"
4 VERSION="1.2.8"
5 CATEGORY="multimedia"
6 SHORT_DESC="Xine video library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.xine-project.org/"
11 WGET_URL="http://downloads.sourceforge.net/project/xine/$PACKAGE/$VERSION/$TARBALL"
12 SUGGESTED="xine-fonts"
13 HOST_ARCH="i486 arm"
15 BUILD_DEPENDS="xorg-libXvMC-dev xorg-libXv-dev xorg-xextproto xorg-videoproto \
16 alsa-lib-dev libogg-dev libvorbis-dev libtheora-dev freetype-dev perl \
17 pkg-config util-linux-uuid-dev libxcb-dev libxcb-dev ffmpeg-dev file \
18 libmodplug-dev"
19 SPLIT="xine-lib xine-lib-dev xine-fonts"
21 # Handle cross compilation
22 case "$ARCH" in
23 arm*)
24 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
25 export LIBTOOL=${HOST_SYSTEM}-libtool
26 ARCH_ARGS="--disable-xinerama" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's/grep -x/grep/' configure
33 CPPFLAGS="$CPPFLAGS -DHAVE_NANO_SLEEP" \
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 --with-freetype \
39 --with-xcb \
40 --without-jack \
41 --without-imagemagick \
42 --without-sdl \
43 --disable-gnomevfs \
44 --disable-samba \
45 --disable-glu \
46 --disable-opengl \
47 --disable-fb \
48 --without-esound \
49 --disable-vcd \
50 --disable-musepack \
51 $CONFIGURE_ARGS $ARCH_ARGS &&
52 make && make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 case "$PACKAGE" in
59 xine-lib)
60 SUGGESTED="faad2"
61 DEPENDS="zlib xorg-libX11 xorg-libXv xorg-libXvMC alsa-lib \
62 libogg libvorbis libtheora xorg-libXvMC xorg-libXv \
63 libxcb ffmpeg libmodplug"
64 mkdir -p $fs/usr/lib $fs/usr/share
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 cp -a $install/usr/lib/xine $fs/usr/lib
67 ;;
68 xine-fonts)
69 CAT="x-window|Extra fonts for Xine video player."
70 DEPENDS="xine-ui"
71 mkdir -p $fs/usr/share/xine-lib
72 cp -a $install/usr/share/xine-lib/fonts \
73 $fs/usr/share/xine-lib
74 ;;
75 xine-lib-dev)
76 CAT="development|Xine video library."
77 DEPENDS="pkg-config"
78 mkdir -p $fs/usr/lib $fs/usr/share
79 cp -a $install/usr/bin $fs/usr
80 chmod 755 $fs/usr/bin/*
81 cp -a $install/usr/include $fs/usr
82 cp -a $install/usr/lib/*.*a $fs/usr/lib
83 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
84 cp -a $install/usr/share/aclocal $fs/usr/share
85 ;;
86 esac
87 }