wok-next annotate libvalhalla/receipt @ rev 18850

libcomerr3 provides libcomerr... (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 24 17:34:37 2016 +0100 (2016-01-24)
parents 68f00cd672fd
children 2809ecb8c754
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"
pankso@4766 10 WEB_SITE="http://libvalhalla.geexbox.org/"
pankso@4766 11 WGET_URL="http://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
pankso@16168 19 # Handle cross compilation
pankso@16168 20 case "$ARCH" in
pankso@16168 21 i?86)
pascal@17670 22 #export LDFLAGS="$LDFLAGS -lavformat"
pankso@16168 23 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
pascal@17670 24 export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" ;;
pankso@16168 25 arm*)
pankso@16168 26 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig
pascal@17670 27 export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat"
pascal@17670 28 export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat"
pascal@17670 29 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat"
pankso@16168 30 ARCH_ARGS="--cross-compile" ;;
pankso@16168 31 esac
pascal@14718 32
pankso@4766 33 # Rules to configure and make the package.
pankso@4766 34 compile_rules()
pankso@4766 35 {
pankso@16092 36 # Fix Busybox cat
pankso@16168 37 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' \
pankso@16168 38 configure
pankso@16092 39
pankso@4766 40 ./configure \
pankso@16168 41 --prefix=/usr ${ARCH_ARGS} &&
pankso@16092 42 make && make install
pankso@4766 43 }
pankso@4766 44
pankso@4766 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4766 46 genpkg_rules()
pankso@4766 47 {
pankso@4766 48 mkdir -p $fs/usr/lib
pascal@14718 49 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@4766 50 }