wok-6.x view libvalhalla/receipt @ rev 16332
znc: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 11 06:13:22 2014 +0000 (2014-04-11) |
parents | 1204cf352c74 |
children | 17e313b5b9c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libvalhalla"
4 VERSION="2.1.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="A tiny media scanner API."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://libvalhalla.geexbox.org/"
11 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ffmpeg ffmpeg-compat libexif libsqlite libxml2 libgcrypt libcurl \
15 libcrypto"
16 BUILD_DEPENDS="ffmpeg-dev ffmpeg-compat-dev libsqlite sqlite-dev \
17 libxml2-dev libexif-dev curl-dev"
19 # Handle cross compilation
20 case "$ARCH" in
21 i?86)
22 #export LDFLAGS="-lavformat"
23 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
24 export LDFLAGS="-Wl,-rpath=/usr/lib/ffmpeg-compat" ;;
25 arm*)
26 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig
27 export LDFLAGS="-Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat"
28 export CFLAGS="$CFLAFS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat"
29 export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat"
30 ARCH_ARGS="--cross-compile" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # Fix Busybox cat
37 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' \
38 configure
40 ./configure \
41 --prefix=/usr ${ARCH_ARGS} &&
42 make && make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 }