diff --git a/media-sound/sox/patches/sox-14.4.2.patchset b/media-sound/sox/patches/sox-14.4.2.patchset index 0a1c909e1..7a9679bbc 100644 --- a/media-sound/sox/patches/sox-14.4.2.patchset +++ b/media-sound/sox/patches/sox-14.4.2.patchset @@ -1,4 +1,4 @@ -From 36e7868b80c3f53896e647b06ad8d96baf925e05 Mon Sep 17 00:00:00 2001 +From 5a01e27e402cf83edbd190ee2d02a71d3f40f9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Fri, 28 Aug 2015 12:23:33 +0000 @@ -19,5 +19,28 @@ index 724a4cd..079cd9a 100644 #elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || \ defined _ISO_STDIO_ISO_H || defined __sgi -- -2.2.2 +2.45.2 + + +From afd8fd6252f2db10bb6f675914c7a3b6b3ea1942 Mon Sep 17 00:00:00 2001 +From: Schrijvers Luc +Date: Mon, 2 Dec 2024 12:36:41 +0100 +Subject: Fix path for "time" (fixes tests) + + +diff --git a/src/tests.sh b/src/tests.sh +index 51a6ede..231c74b 100755 +--- a/src/tests.sh ++++ b/src/tests.sh +@@ -182,7 +182,7 @@ stderr_time () { + } + + # Reading and writing performance test +-time="/usr/bin/time -p" ++time="/bin/time -p" + timeIO () { + $time ${bindir}/sox${EXEEXT} -c $channels -r $rate -n tmp.sox synth $samples's' saw 0:`expr $rate / 2` noise brown vol .9 2> tmp.write + echo TIME synth channels=$channels samples=$samples `stderr_time tmp.write`s +-- +2.45.2 diff --git a/media-sound/sox/sox-14.4.2.recipe b/media-sound/sox/sox-14.4.2.recipe index f29dc5bff..62f6d2bc7 100644 --- a/media-sound/sox/sox-14.4.2.recipe +++ b/media-sound/sox/sox-14.4.2.recipe @@ -6,7 +6,7 @@ bonus, SoX can play and record audio files on most platforms." HOMEPAGE="http://sox.sourceforge.net" COPYRIGHT="1991-2015 Lance Norskog" LICENSE="GNU GPL v2" -REVISION="5" +REVISION="6" SOURCE_URI="https://downloads.sf.net/sox/sox-$portVersion.tar.bz2" CHECKSUM_SHA256="81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c" PATCHES="sox-$portVersion.patchset" @@ -52,6 +52,7 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel + gcc${secondaryArchSuffix}_syslibs_devel devel:libao$secondaryArchSuffix devel:libflac$secondaryArchSuffix devel:libid3tag$secondaryArchSuffix @@ -74,6 +75,11 @@ BUILD_PREREQUIRES=" cmd:pkg_config$secondaryArchSuffix " +TEST_REQUIRES=" + cmd:cmp + cmd:time + " + defineDebugInfoPackage sox$secondaryArchSuffix \ "$libDir"/libsox.so.$libVersion @@ -96,3 +102,9 @@ INSTALL() packageEntries devel \ "$developDir" } + +TEST() +{ + cd src + ./tests.sh +}