wok-next diff 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 |
line diff
1.1 --- a/libvalhalla/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/libvalhalla/receipt Tue Aug 21 05:42:25 2018 +0300 1.3 @@ -1,49 +1,60 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libvalhalla" 1.8 VERSION="2.1.0" 1.9 CATEGORY="multimedia" 1.10 -SHORT_DESC="A tiny media scanner API." 1.11 +SHORT_DESC="A tiny media scanner API" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="LGPL2.1" 1.14 +WEB_SITE="http://libvalhalla.geexbox.org/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://libvalhalla.geexbox.org/" 1.18 WGET_URL="http://libvalhalla.geexbox.org/releases/$TARBALL" 1.19 1.20 -DEPENDS="ffmpeg ffmpeg-compat libexif libsqlite3 libxml2 libgcrypt libcurl \ 1.21 -openssl" 1.22 BUILD_DEPENDS="ffmpeg-dev ffmpeg-compat-dev libsqlite3 sqlite3-dev \ 1.23 libxml2-dev libexif-dev curl-dev" 1.24 +SPLIT="libvalhalla-dev" 1.25 1.26 -# Handle cross compilation 1.27 -case "$ARCH" in 1.28 - i?86) 1.29 - #export LDFLAGS="$LDFLAGS -lavformat" 1.30 - export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig 1.31 - export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" ;; 1.32 - arm*) 1.33 - export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig 1.34 - export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat" 1.35 - export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat" 1.36 - export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat" 1.37 - ARCH_ARGS="--cross-compile" ;; 1.38 -esac 1.39 +compile_rules() { 1.40 + case "$ARCH" in 1.41 + arm*) 1.42 + export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat/pkgconfig 1.43 + export LDFLAGS="$LDFLAGS -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat" 1.44 + export CFLAGS="$CFLAGS -I/cross/$ARCH/sysroot/usr/include/ffmpeg-compat" 1.45 + export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib/ffmpeg-compat -lavformat" 1.46 + ARCH_ARGS="--cross-compile" 1.47 + ;; 1.48 + *) 1.49 + #export LDFLAGS="$LDFLAGS -lavformat" 1.50 + export PKG_CONFIG_PATH=/usr/lib/ffmpeg-compat/pkgconfig 1.51 + export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/ffmpeg-compat" 1.52 + ;; 1.53 + esac 1.54 1.55 -# Rules to configure and make the package. 1.56 -compile_rules() 1.57 -{ 1.58 # Fix Busybox cat 1.59 - sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' \ 1.60 - configure 1.61 - 1.62 + sed -i 's/cat -n/awk '"'"'{ printf "%6d %s\\n",++n,$0 }'"'"' </' configure 1.63 + 1.64 ./configure \ 1.65 - --prefix=/usr ${ARCH_ARGS} && 1.66 + --prefix=/usr \ 1.67 + $ARCH_ARGS && 1.68 make && make install 1.69 } 1.70 1.71 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.72 -genpkg_rules() 1.73 -{ 1.74 - mkdir -p $fs/usr/lib 1.75 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.76 +genpkg_rules() { 1.77 + case $PACKAGE in 1.78 + libvalhalla) 1.79 + mkdir -p $fs/usr/lib 1.80 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.81 + DEPENDS="ffmpeg ffmpeg-compat libexif libsqlite3 libxml2 libgcrypt \ 1.82 + libcurl openssl" 1.83 + ;; 1.84 + *-dev) 1.85 + mkdir -p $fs/usr/lib 1.86 + cp -a $install/usr/bin $fs/usr 1.87 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.88 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.89 + cp -a $install/usr/include $fs/usr 1.90 + DEPENDS="libvalhalla sqlite3-dev" 1.91 + ;; 1.92 + esac 1.93 }