wok-current view libvalhalla/receipt @ rev 25362
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 28 07:24:59 2022 +0000 (2022-07-28) |
parents | 08c52f1e528e |
children |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/GeeXboX/libvalhalla/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Handle cross compilation
27 case "$ARCH" in
28 i?86)
29 #export LDFLAGS="$LDFLAGS -lavformat"
30 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig
31 export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" ;;
32 arm*)
33 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig
34 export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat"
35 export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat"
36 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat"
37 ARCH_ARGS="--cross-compile" ;;
38 esac
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 # Fix Busybox cat
44 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' \
45 configure
47 ./configure \
48 --prefix=/usr ${ARCH_ARGS} &&
49 make && make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 }