# SliTaz package receipt. PACKAGE="libvalhalla" VERSION="2.1.0" CATEGORY="multimedia" SHORT_DESC="A tiny media scanner API." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2.1" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://libvalhalla.geexbox.org/" WGET_URL="https://libvalhalla.geexbox.org/releases/$TARBALL" HOST_ARCH="i486 arm" DEPENDS="ffmpeg ffmpeg-compat libexif libsqlite libxml2 libgcrypt libcurl \ libcrypto" BUILD_DEPENDS="ffmpeg-dev ffmpeg-compat-dev libsqlite sqlite-dev \ libxml2-dev libexif-dev curl-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/GeeXboX/libvalhalla/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Handle cross compilation case "$ARCH" in i?86) #export LDFLAGS="$LDFLAGS -lavformat" export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" ;; arm*) export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat" export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat" export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat" ARCH_ARGS="--cross-compile" ;; esac # Rules to configure and make the package. compile_rules() { # Fix Busybox cat sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"'