wok-6.x annotate libsndfile/receipt @ rev 24533
updated f3 (7.2 -> 8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 11:14:10 2022 +0100 (2022-02-23) |
parents | eb224fc20462 |
children | 193f02614bcf |
rev | line source |
---|---|
jozee@2659 | 1 # SliTaz package receipt. |
jozee@2659 | 2 |
jozee@2659 | 3 PACKAGE="libsndfile" |
Hans-G?nter@21299 | 4 VERSION="1.0.28" |
jozee@2659 | 5 CATEGORY="multimedia" |
Hans-G?nter@21299 | 6 SHORT_DESC="A C library for reading and writing files containing sampled sound." |
jozee@2659 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15482 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@21299 | 9 WEB_SITE="http://www.mega-nerd.com/libsndfile/" |
Hans-G?nter@21299 | 10 |
jozee@2659 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@6179 | 12 WGET_URL="$WEB_SITE/files/$TARBALL" |
jozee@2659 | 13 |
pankso@16268 | 14 DEPENDS="alsa-lib libvorbis" |
pankso@16268 | 15 BUILD_DEPENDS="alsa-lib-dev libvorbis-dev" |
pankso@16268 | 16 |
Hans-G?nter@21299 | 17 HOST_ARCH="i486 arm" |
Hans-G?nter@21299 | 18 |
pankso@16268 | 19 # Handle slitaz arch |
pankso@16268 | 20 case "$SLITAZ_ARCH" in |
pankso@16268 | 21 i?86) DEPENDS="$DEPENDS flac" ;; |
pankso@16268 | 22 esac |
pankso@16268 | 23 |
pankso@16268 | 24 # Handle cross compilation. |
pankso@16268 | 25 case "$ARCH" in |
pascal@16327 | 26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;; |
pankso@16268 | 27 esac |
pascal@15482 | 28 |
pascal@24427 | 29 # What is the latest version available today? |
pascal@24427 | 30 current_version() |
pascal@24427 | 31 { |
pascal@24427 | 32 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 33 sed "/test/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 34 } |
pascal@24427 | 35 |
jozee@2659 | 36 # Rules to configure and make the package. |
jozee@2659 | 37 compile_rules() |
jozee@2659 | 38 { |
Hans-G?nter@21299 | 39 ./configure \ |
Hans-G?nter@21299 | 40 --prefix=/usr \ |
Hans-G?nter@21299 | 41 --disable-sqlite \ |
Hans-G?nter@21299 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@21299 | 43 make -j 1 && |
pascal@15482 | 44 make DESTDIR=$DESTDIR install |
jozee@2659 | 45 } |
jozee@2659 | 46 |
jozee@2659 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2659 | 48 genpkg_rules() |
jozee@2659 | 49 { |
jozee@2659 | 50 mkdir -p $fs/usr/lib |
pascal@15482 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
jozee@2659 | 52 } |