wok view xine-lib/receipt @ rev 25282
updated rlwrap (0.43 -> 0.45.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 15:29:34 2022 +0100 (2022-07-18) |
parents | fabe7b490b0b |
children | ec9531d04de1 |
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 # What is the latest version available today?
32 current_version()
33 {
34 wget -O - https://sourceforge.net/projects/xine/files/xine-lib/ 2>/dev/null | \
35 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
36 sed '/scope="row/!d;s|.*/xine-lib/||;s|/.*||;q'
37 }
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 sed -i 's/grep -x/grep/' configure
43 export LDFLAGS="$LDFLAGS -lstdc++"
45 CPPFLAGS="$CPPFLAGS -DHAVE_NANO_SLEEP" \
46 ./configure \
47 --prefix=/usr \
48 --infodir=/usr/share/info \
49 --mandir=/usr/share/man \
50 --with-freetype \
51 --with-xcb \
52 --without-jack \
53 --without-imagemagick \
54 --without-sdl \
55 --disable-gnomevfs \
56 --disable-samba \
57 --disable-glu \
58 --disable-opengl \
59 --disable-fb \
60 --without-esound \
61 --disable-vcd \
62 --disable-musepack \
63 $CONFIGURE_ARGS \
64 $ARCH_ARGS &&
65 make &&
66 make install
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 mkdir -p $fs/usr/lib
73 mkdir -p $fs/usr/share
75 cp -a $install/usr/lib/*.so* $fs/usr/lib
76 cp -a $install/usr/lib/xine $fs/usr/lib
77 }