wok-6.x view libvalhalla/receipt @ rev 21921

Add pcem (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 05 17:33:56 2019 +0200 (2019-10-05)
parents 68f00cd672fd
children 08c52f1e528e
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="$LDFLAGS -lavformat"
23 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
24 export LDFLAGS="$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="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat"
28 export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat"
29 export LDFLAGS="$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 }