wok-6.x annotate sox/receipt @ rev 24631
updated gtest (1.10.0 -> 1.11.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 08 15:38:54 2022 +0100 (2022-03-08) |
parents | 28c0d31f1850 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@1347 | 1 # SliTaz package receipt. |
pascal@1347 | 2 |
pascal@1347 | 3 PACKAGE="sox" |
Hans-G?nter@21934 | 4 VERSION="14.4.2" |
pascal@1347 | 5 CATEGORY="multimedia" |
pascal@1347 | 6 SHORT_DESC="Swiss Army knife of sound processing programs." |
pascal@1347 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15023 | 8 LICENSE="GPL LGPL" |
Hans-G?nter@21934 | 9 WEB_SITE="http://sox.sourceforge.net/" |
Hans-G?nter@21934 | 10 |
pascal@1347 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1347 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@21934 | 13 |
Hans-G?nter@21934 | 14 DEPENDS="alsa-lib ffmpeg lame libao libgomp libid3tag libltdl libmad \ |
Hans-G?nter@21934 | 15 libmagic libpng libsamplerate libsndfile libvorbis" |
Hans-G?nter@21934 | 16 BUILD_DEPENDS="alsa-lib-dev ffmpeg-dev lame-dev libao-dev libid3tag-dev \ |
Hans-G?nter@21934 | 17 libmad-dev libmagic-dev libogg-dev libpng-dev libsamplerate-dev \ |
Hans-G?nter@21934 | 18 libsndfile-dev libvorbis-dev" |
Hans-G?nter@21934 | 19 |
pankso@16379 | 20 HOST_ARCH="i486 arm" |
pankso@16379 | 21 |
pankso@16379 | 22 # Handle SliTaz arch |
pankso@16379 | 23 case "$SLITAZ_ARCH" in |
pankso@16379 | 24 i?86) DEPENDS="$DEPENDS flac" |
pankso@16379 | 25 esac |
pankso@16379 | 26 |
pankso@16379 | 27 # Handle cross compilation |
pankso@16379 | 28 case "$ARCH" in |
pankso@16379 | 29 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" |
pankso@16379 | 30 esac |
erjo@9945 | 31 |
pascal@24348 | 32 # What is the latest version available today? |
pascal@24348 | 33 current_version() |
pascal@24348 | 34 { |
pascal@24348 | 35 wget -O - https://sourceforge.net/projects/sox/files/sox/ 2>/dev/null | \ |
pascal@24348 | 36 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 37 sed '/scope="row/!d;s|.*/sox/||;s|/.*||;q' |
pascal@24348 | 38 } |
pascal@24348 | 39 |
pascal@1347 | 40 # Rules to configure and make the package. |
pascal@1347 | 41 compile_rules() |
pascal@1347 | 42 { |
Hans-G?nter@21934 | 43 ./configure \ |
Hans-G?nter@21934 | 44 --with-distro="SliTaz" \ |
pankso@16379 | 45 $CONFIGURE_ARGS && |
Hans-G?nter@21934 | 46 make && |
Hans-G?nter@21934 | 47 make install |
pascal@1347 | 48 } |
pascal@1347 | 49 |
pascal@1347 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1347 | 51 genpkg_rules() |
pascal@1347 | 52 { |
pascal@1347 | 53 mkdir -p $fs/usr/lib/sox |
Hans-G?nter@21934 | 54 |
Hans-G?nter@21934 | 55 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21934 | 56 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21934 | 57 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
pascal@1347 | 58 } |