wok-next annotate libvalhalla/receipt @ rev 20916
libopenraw, abiword: update deps; boost: pack unpacked libs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 21 05:42:25 2018 +0300 (2018-08-21) |
parents | c4e53a39395a |
children | d2950281f122 |
rev | line source |
---|---|
al@20462 | 1 # SliTaz package receipt v2. |
pankso@4766 | 2 |
pankso@4766 | 3 PACKAGE="libvalhalla" |
pascal@13624 | 4 VERSION="2.1.0" |
jozee@4783 | 5 CATEGORY="multimedia" |
al@20462 | 6 SHORT_DESC="A tiny media scanner API" |
pankso@4766 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14718 | 8 LICENSE="LGPL2.1" |
al@20462 | 9 WEB_SITE="http://libvalhalla.geexbox.org/" |
al@20462 | 10 |
pankso@4766 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@4766 | 12 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL" |
pankso@4766 | 13 |
pascal@20098 | 14 BUILD_DEPENDS="ffmpeg-dev ffmpeg-compat-dev libsqlite3 sqlite3-dev \ |
pankso@16168 | 15 libxml2-dev libexif-dev curl-dev" |
al@20462 | 16 SPLIT="libvalhalla-dev" |
pankso@16168 | 17 |
al@20462 | 18 compile_rules() { |
al@20462 | 19 case "$ARCH" in |
al@20462 | 20 arm*) |
al@20462 | 21 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig |
al@20462 | 22 export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat" |
al@20462 | 23 export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat" |
al@20462 | 24 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat" |
al@20462 | 25 ARCH_ARGS="--cross-compile" |
al@20462 | 26 ;; |
al@20462 | 27 *) |
al@20462 | 28 #export LDFLAGS="$LDFLAGS -lavformat" |
al@20462 | 29 export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig |
al@20462 | 30 export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" |
al@20462 | 31 ;; |
al@20462 | 32 esac |
pascal@14718 | 33 |
pankso@16092 | 34 # Fix Busybox cat |
al@20462 | 35 sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure |
al@20462 | 36 |
pankso@4766 | 37 ./configure \ |
al@20462 | 38 --prefix=/usr \ |
al@20462 | 39 $ARCH_ARGS && |
pankso@16092 | 40 make && make install |
pankso@4766 | 41 } |
pankso@4766 | 42 |
al@20462 | 43 genpkg_rules() { |
al@20462 | 44 case $PACKAGE in |
al@20462 | 45 libvalhalla) |
al@20462 | 46 mkdir -p $fs/usr/lib |
al@20462 | 47 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@20462 | 48 DEPENDS="ffmpeg ffmpeg-compat libexif libsqlite3 libxml2 libgcrypt \ |
al@20462 | 49 libcurl openssl" |
al@20462 | 50 ;; |
al@20462 | 51 *-dev) |
al@20462 | 52 mkdir -p $fs/usr/lib |
al@20462 | 53 cp -a $install/usr/bin $fs/usr |
al@20462 | 54 cp -a $install/usr/lib/*.*a $fs/usr/lib |
al@20462 | 55 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
al@20462 | 56 cp -a $install/usr/include $fs/usr |
al@20462 | 57 DEPENDS="libvalhalla sqlite3-dev" |
al@20462 | 58 ;; |
al@20462 | 59 esac |
pankso@4766 | 60 } |