wok annotate libvalhalla/receipt @ rev 25039

Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 14:53:15 2022 +0000 (2022-05-26)
parents 08c52f1e528e
children 72fb3028d8ce
rev   line source
pankso@4766 1 # SliTaz package receipt.
pankso@4766 2
pankso@4766 3 PACKAGE="libvalhalla"
pascal@13624 4 VERSION="2.1.0"
jozee@4783 5 CATEGORY="multimedia"
pankso@4766 6 SHORT_DESC="A tiny media scanner API."
pankso@4766 7 MAINTAINER="pankso@slitaz.org"
pascal@14718 8 LICENSE="LGPL2.1"
pankso@4766 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@22668 10 WEB_SITE="https://libvalhalla.geexbox.org/"
pascal@22668 11 WGET_URL="https://libvalhalla.geexbox.org/releases/$TARBALL"
pankso@16168 12 HOST_ARCH="i486 arm"
pankso@4766 13
pankso@16168 14 DEPENDS="ffmpeg ffmpeg-compat libexif libsqlite libxml2 libgcrypt libcurl \
pankso@16168 15 libcrypto"
pankso@16168 16 BUILD_DEPENDS="ffmpeg-dev ffmpeg-compat-dev libsqlite sqlite-dev \
pankso@16168 17 libxml2-dev libexif-dev curl-dev"
pankso@16168 18
pascal@24447 19 # What is the latest version available today?
pascal@24447 20 current_version()
pascal@24447 21 {
pascal@24447 22 wget -O - https://github.com/GeeXboX/libvalhalla/tags 2>/dev/null | \
pascal@24447 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24447 24 }
pascal@24447 25
pankso@16168 26 # Handle cross compilation
pankso@16168 27 case "$ARCH" in
pankso@16168 28 i?86)
pascal@17670 29 #export LDFLAGS="$LDFLAGS -lavformat"
pankso@16168 30 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
pascal@17670 31 export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" ;;
pankso@16168 32 arm*)
pankso@16168 33 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig
pascal@17670 34 export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat"
pascal@17670 35 export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat"
pascal@17670 36 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat"
pankso@16168 37 ARCH_ARGS="--cross-compile" ;;
pankso@16168 38 esac
pascal@14718 39
pankso@4766 40 # Rules to configure and make the package.
pankso@4766 41 compile_rules()
pankso@4766 42 {
pankso@16092 43 # Fix Busybox cat
pankso@16168 44 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' \
pankso@16168 45 configure
pankso@16092 46
pankso@4766 47 ./configure \
pankso@16168 48 --prefix=/usr ${ARCH_ARGS} &&
pankso@16092 49 make && make install
pankso@4766 50 }
pankso@4766 51
pankso@4766 52 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4766 53 genpkg_rules()
pankso@4766 54 {
pankso@4766 55 mkdir -p $fs/usr/lib
pascal@14718 56 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@4766 57 }