wok-next diff libsndfile/receipt @ rev 20259
xsave: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 07 18:34:13 2017 +0100 (2017-11-07) |
parents | 9736e603f8a1 |
children | 5841522533ec |
line diff
1.1 --- a/libsndfile/receipt Thu Apr 10 19:08:24 2014 +0000 1.2 +++ b/libsndfile/receipt Tue Nov 07 18:34:13 2017 +0100 1.3 @@ -1,41 +1,46 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libsndfile" 1.8 -VERSION="1.0.23" 1.9 +VERSION="1.0.27" 1.10 CATEGORY="multimedia" 1.11 SHORT_DESC="A C library for reading and writing files containing sampled sound" 1.12 MAINTAINER="jozee@slitaz.org" 1.13 LICENSE="LGPL2.1" 1.14 +WEB_SITE="http://www.mega-nerd.com/libsndfile/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://www.mega-nerd.com/libsndfile/" 1.18 WGET_URL="$WEB_SITE/files/$TARBALL" 1.19 -HOST_ARCH="i486 arm" 1.20 1.21 -DEPENDS="alsa-lib libvorbis" 1.22 -BUILD_DEPENDS="alsa-lib-dev libvorbis-dev" 1.23 - 1.24 -# Handle slitaz arch 1.25 -case "$SLITAZ_ARCH" in 1.26 - i?86) DEPENDS="$DEPENDS flac" ;; 1.27 -esac 1.28 - 1.29 -# Handle cross compilation. 1.30 -case "$ARCH" in 1.31 - i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;; 1.32 -esac 1.33 +BUILD_DEPENDS="alsa-lib-dev libvorbis-dev flac-dev" 1.34 +SPLIT="libsndfile-apps libsndfile-dev" 1.35 1.36 # Rules to configure and make the package. 1.37 compile_rules() 1.38 { 1.39 - cd $src 1.40 - ./configure --prefix=/usr --disable-sqlite $CONFIGURE_ARGS && 1.41 - make && 1.42 - make DESTDIR=$DESTDIR install 1.43 + ./configure \ 1.44 + --disable-static \ 1.45 + --docdir=/usr/share/doc/libsndfile-$VERSION \ 1.46 + $CONFIGURE_ARGS && 1.47 + make && make install 1.48 } 1.49 1.50 # Rules to gen a SliTaz package suitable for Tazpkg. 1.51 genpkg_rules() 1.52 { 1.53 - mkdir -p $fs/usr/lib 1.54 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.55 + case $PACKAGE in 1.56 + libsndfile) 1.57 + copy *.so* 1.58 + DEPENDS="flac libogg libvorbis" 1.59 + ;; 1.60 + *-apps) 1.61 + copy bin/ 1.62 + CAT="multimedia|applications" 1.63 + DEPENDS="alsa-lib libsndfile" 1.64 + ;; 1.65 + *-dev) 1.66 + copy @dev 1.67 + DEPENDS="libsndfile libsndfile-apps flac-dev libogg-dev \ 1.68 + libvorbis-dev" 1.69 + ;; 1.70 + esac 1.71 }