mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
77 lines
1.8 KiB
Bash
77 lines
1.8 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="1"
|
|
SOURCE_URI="http://downloads.sourceforge.net/project/soxr/soxr-$portVersion-Source.tar.xz"
|
|
CHECKSUM_SHA256="54e6f434f1c491388cd92f0e3c47f1ade082cc24327bdc43762f7d1eefe0c275"
|
|
SOURCE_DIR="soxr-$portVersion-Source"
|
|
PATCHES="soxr-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
soxr${secondaryArchSuffix} = $portVersion
|
|
lib:libsoxr$secondaryArchSuffix = 0.1.1 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.1 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 . \
|
|
-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 $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs libsoxr libsoxr-lsr
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|