mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
78 lines
1.9 KiB
Bash
78 lines
1.9 KiB
Bash
SUMMARY="A high-quality audio resampling library"
|
|
DESCRIPTION="SoXR handles the conversion of audio to different sample rates \
|
|
(most commonly 44100, 48000, and 96000 Hz). It is one-dimensional and \
|
|
high-quality."
|
|
HOMEPAGE="https://sourceforge.net/p/soxr/wiki/Home/"
|
|
COPYRIGHT="2007-2013 Rob Sykes"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="2"
|
|
SOURCE_URI="http://downloads.sourceforge.net/project/soxr/soxr-$portVersion-Source.tar.xz"
|
|
CHECKSUM_SHA256="b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889"
|
|
SOURCE_DIR="soxr-$portVersion-Source"
|
|
PATCHES="soxr-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
soxr${secondaryArchSuffix} = $portVersion
|
|
lib:libsoxr$secondaryArchSuffix = 0.1.2 compat >= 0
|
|
lib:libsoxr_lsr$secondaryArchSuffix = 0.1.9 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
REQUIRES="$REQUIRES
|
|
lib:libgomp$secondaryArchSuffix
|
|
"
|
|
fi
|
|
|
|
PROVIDES_devel="
|
|
soxr${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsoxr$secondaryArchSuffix = 0.1.2 compat >= 0
|
|
devel:libsoxr_lsr$secondaryArchSuffix = 0.1.9 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
soxr$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
|
|
visibilityArgs="-DVISIBILITY_HIDDEN=OFF"
|
|
fi
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DBUILD_TESTS=OFF \
|
|
-DBIN_INSTALL_DIR=$binDir \
|
|
-DLIB_INSTALL_DIR=$libDir \
|
|
-DINCLUDE_INSTALL_DIR=$includeDir \
|
|
-DDOC_INSTALL_DIR=$docDir \
|
|
$visibilityArgs
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs libsoxr libsoxr-lsr
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|