wok annotate libvalhalla/receipt @ rev 24350
updated meson (0.53.2 -> 0.60.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 03 09:19:33 2022 +0100 (2022-02-03) |
parents | 17e313b5b9c1 |
children | ede1d184d5c5 |
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" |
pascal@22668 | 10 WEB_SITE="https://libvalhalla.geexbox.org/" |
pascal@22668 | 11 WGET_URL="https://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) |
pascal@17670 | 22 #export LDFLAGS="$LDFLAGS -lavformat" |
pankso@16168 | 23 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig |
pascal@17670 | 24 export LDFLAGS="$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 |
pascal@17670 | 27 export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat" |
pascal@17670 | 28 export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat" |
pascal@17670 | 29 export LDFLAGS="$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 } |