wok view xine-lib/receipt @ rev 24092

Up get-pcem-roms (2.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 18 13:15:53 2021 +0000 (2021-07-18)
parents 31ba14fadb9a
children 3105f866bc3e
line source
1 # SliTaz package receipt.
3 PACKAGE="xine-lib"
4 VERSION="1.2.10"
5 CATEGORY="multimedia"
6 SHORT_DESC="Xine video library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.xine-project.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://downloads.sourceforge.net/project/xine/$PACKAGE/$VERSION/$TARBALL"
14 SUGGESTED="faac faad2 xine-fonts"
15 DEPENDS="alsa-lib ffmpeg libmodplug libogg libtheora libvorbis libxcb xorg-libX11
16 xorg-libXv xorg-libXvMC zlib"
17 BUILD_DEPENDS="alsa-lib-dev ffmpeg-dev file freetype-dev gcc83 libmodplug-dev libogg-dev
18 libtheora-dev libvorbis-dev libxcb-dev perl pkg-config util-linux-uuid-dev
19 xorg-libXv-dev xorg-libXvMC-dev xorg-videoproto xorg-xextproto"
21 HOST_ARCH="i486 arm"
23 # Handle cross compilation
24 case "$ARCH" in
25 arm*)
26 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
27 export LIBTOOL=${HOST_SYSTEM}-libtool
28 ARCH_ARGS="--disable-xinerama" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 sed -i 's/grep -x/grep/' configure
35 export LDFLAGS="$LDFLAGS -lstdc++"
37 CPPFLAGS="$CPPFLAGS -DHAVE_NANO_SLEEP" \
38 ./configure \
39 --prefix=/usr \
40 --infodir=/usr/share/info \
41 --mandir=/usr/share/man \
42 --with-freetype \
43 --with-xcb \
44 --without-jack \
45 --without-imagemagick \
46 --without-sdl \
47 --disable-gnomevfs \
48 --disable-samba \
49 --disable-glu \
50 --disable-opengl \
51 --disable-fb \
52 --without-esound \
53 --disable-vcd \
54 --disable-musepack \
55 $CONFIGURE_ARGS \
56 $ARCH_ARGS &&
57 make &&
58 make install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib
65 mkdir -p $fs/usr/share
67 cp -a $install/usr/lib/*.so* $fs/usr/lib
68 cp -a $install/usr/lib/xine $fs/usr/lib
69 }