sox_ng, add recipe (#11825)

This commit is contained in:
Schrijvers Luc
2025-02-26 13:54:13 +01:00
committed by GitHub
parent 505a1d7002
commit dda56994c3

View File

@@ -0,0 +1,111 @@
SUMMARY="Another Swiss Army knife of sound processing tools"
DESCRIPTION="SoX (Sound eXchange) is another Swiss Army knife of sound processing tools: it can \
convert sound files between many different file formats & audio devices, and can apply many \
sound effects & transformations, as well as doing basic analysis and providing input to more \
capable analysis and plotting tools.
The SoX_ng project imports, compares and refines bug fixes and new work from the \
50-odd software distributions that package SoX and from the plethora of forks on github and \
elsewhere and makes regular releases with a six-monthly cadence for each of the micro (bug \
fixes) and minor (new features) releases. A major release (non-backwards-compatible changes) is \
not planned."
HOMEPAGE="https://codeberg.org/sox_ng"
COPYRIGHT="1991-2015 Lance Norskog
1998-2013 Chris Bagwell and SoX Contributors"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="$HOMEPAGE/sox_ng/releases/download/sox_ng-$portVersion/sox_ng-$portVersion.tar.gz"
CHECKSUM_SHA256="a011be3bdf027073929492beb4e640bd0ba21be891f7ccb40c68371aa3745cf7"
SOURCE_DIR="sox_ng-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="3.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
sox_ng$secondaryArchSuffix = $portVersion compat >= 1
cmd:play_ng$secondaryArchSuffix = $portVersion
cmd:rec_ng$secondaryArchSuffix = $portVersion
cmd:sox_ng$secondaryArchSuffix = $portVersion
cmd:soxi_ng$secondaryArchSuffix = $portVersion
lib:libsox_ng$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libao$secondaryArchSuffix
lib:libflac$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
lib:libid3tag$secondaryArchSuffix
lib:libmad$secondaryArchSuffix
lib:libmagic$secondaryArchSuffix
lib:libmp3lame$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
# lib:libopus$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libsndfile$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libwavpack$secondaryArchSuffix
"
PROVIDES_devel="
sox_ng${secondaryArchSuffix}_devel = $portVersion
devel:libsox_ng$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
sox_ng${secondaryArchSuffix} == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
gcc${secondaryArchSuffix}_syslibs_devel
devel:libao$secondaryArchSuffix
devel:libflac$secondaryArchSuffix
devel:libid3tag$secondaryArchSuffix
devel:libmad$secondaryArchSuffix
devel:libmagic$secondaryArchSuffix
devel:libmp3lame$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
# devel:libopus$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libsndfile$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libwavpack$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage sox_ng$secondaryArchSuffix \
"$libDir"/libsox_ng.so.$libVersion
BUILD()
{
runConfigure ./configure --disable-static
make $jobArgs
}
INSTALL()
{
make install
# remove libtool file
rm -f $libDir/libsox_ng.la
prepareInstalledDevelLib libsox_ng
fixPkgconfig
packageEntries devel \
"$developDir"
}
TEST()
{
make check
}