wok view libvalhalla/receipt @ rev 22932
updated hsetroot (1.0.2 -> 1.0.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 26 17:01:27 2020 +0100 (2020-02-26) |
parents | 17e313b5b9c1 |
children | ede1d184d5c5 |
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="https://libvalhalla.geexbox.org/"
11 WGET_URL="https://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 }