wok annotate xine-lib/receipt @ rev 24364

created recipes for vamp-sdk and vamp-sdk-dev (2.9.0)
author Hans-G?nter Theisgen
date Fri Feb 04 17:06:06 2022 +0100 (2022-02-04)
parents fabe7b490b0b
children ec9531d04de1
rev   line source
pankso@33 1 # SliTaz package receipt.
pankso@33 2
pankso@33 3 PACKAGE="xine-lib"
Hans-G?nter@23751 4 VERSION="1.2.10"
pankso@206 5 CATEGORY="multimedia"
pankso@33 6 SHORT_DESC="Xine video library."
pankso@33 7 MAINTAINER="pankso@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
Hans-G?nter@23751 9 WEB_SITE="http://www.xine-project.org/"
Hans-G?nter@23751 10
pankso@12525 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@12525 12 WGET_URL="http://downloads.sourceforge.net/project/xine/$PACKAGE/$VERSION/$TARBALL"
Hans-G?nter@23751 13
pascal@23805 14 SUGGESTED="faac faad2 xine-fonts"
Hans-G?nter@23751 15 DEPENDS="alsa-lib ffmpeg libmodplug libogg libtheora libvorbis libxcb xorg-libX11
Hans-G?nter@23751 16 xorg-libXv xorg-libXvMC zlib"
Hans-G?nter@23753 17 BUILD_DEPENDS="alsa-lib-dev ffmpeg-dev file freetype-dev gcc83 libmodplug-dev libogg-dev
Hans-G?nter@23751 18 libtheora-dev libvorbis-dev libxcb-dev perl pkg-config util-linux-uuid-dev
Hans-G?nter@23751 19 xorg-libXv-dev xorg-libXvMC-dev xorg-videoproto xorg-xextproto"
Hans-G?nter@23751 20
pankso@16161 21 HOST_ARCH="i486 arm"
pankso@33 22
pankso@16084 23 # Handle cross compilation
pankso@16084 24 case "$ARCH" in
pankso@16084 25 arm*)
pascal@17670 26 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pankso@16084 27 export LIBTOOL=${HOST_SYSTEM}-libtool
pankso@16084 28 ARCH_ARGS="--disable-xinerama" ;;
pankso@16084 29 esac
pankso@10396 30
pascal@24353 31 # What is the latest version available today?
pascal@24353 32 current_version()
pascal@24353 33 {
pascal@24353 34 wget -O - https://sourceforge.net/projects/xine/files/xine-lib/ 2>/dev/null | \
pascal@24353 35 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24353 36 sed '/scope="row/!d;s|.*/xine-lib/||;s|/.*||;q'
pascal@24353 37 }
pascal@24353 38
pankso@33 39 # Rules to configure and make the package.
pankso@33 40 compile_rules()
pankso@33 41 {
pascal@5162 42 sed -i 's/grep -x/grep/' configure
Hans-G?nter@23752 43 export LDFLAGS="$LDFLAGS -lstdc++"
Hans-G?nter@23752 44
Hans-G?nter@23751 45 CPPFLAGS="$CPPFLAGS -DHAVE_NANO_SLEEP" \
Hans-G?nter@23751 46 ./configure \
Hans-G?nter@23751 47 --prefix=/usr \
Hans-G?nter@23751 48 --infodir=/usr/share/info \
Hans-G?nter@23751 49 --mandir=/usr/share/man \
Hans-G?nter@23751 50 --with-freetype \
Hans-G?nter@23751 51 --with-xcb \
Hans-G?nter@23751 52 --without-jack \
Hans-G?nter@23751 53 --without-imagemagick \
Hans-G?nter@23751 54 --without-sdl \
Hans-G?nter@23751 55 --disable-gnomevfs \
Hans-G?nter@23751 56 --disable-samba \
Hans-G?nter@23751 57 --disable-glu \
Hans-G?nter@23751 58 --disable-opengl \
Hans-G?nter@23751 59 --disable-fb \
Hans-G?nter@23751 60 --without-esound \
Hans-G?nter@23751 61 --disable-vcd \
Hans-G?nter@23751 62 --disable-musepack \
Hans-G?nter@23751 63 $CONFIGURE_ARGS \
Hans-G?nter@23751 64 $ARCH_ARGS &&
Hans-G?nter@23751 65 make &&
Hans-G?nter@23751 66 make install
pankso@33 67 }
pankso@33 68
pankso@33 69 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@33 70 genpkg_rules()
pankso@33 71 {
Hans-G?nter@23751 72 mkdir -p $fs/usr/lib
Hans-G?nter@23751 73 mkdir -p $fs/usr/share
Hans-G?nter@23751 74
Hans-G?nter@23751 75 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23751 76 cp -a $install/usr/lib/xine $fs/usr/lib
pankso@33 77 }