wok-current annotate libvalhalla/receipt @ rev 16168

ARM: add enna media player
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 29 23:45:46 2014 +0100 (2014-03-29)
parents 1204cf352c74
children 17e313b5b9c1
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)
pankso@16168 22 #export LDFLAGS="-lavformat"
pankso@16168 23 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
pankso@16168 24 export 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
pankso@16168 27 export LDFLAGS="-Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat"
pankso@16168 28 export CFLAGS="$CFLAFS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat"
pankso@16168 29 export 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 }