libsbsms: new recipe (#9641)

This commit is contained in:
davidkaroly
2023-10-18 00:38:16 +02:00
committed by GitHub
parent d1494deec2
commit 79e2cb361d

View File

@@ -0,0 +1,60 @@
SUMMARY="A library for high quality time and pitch scale modification"
DESCRIPTION="libsbsms is a library for high quality time and pitch scale \
modification. It is based on octave subband sinusoidal modeling and \
resynthesis. It stitches tracks between subbands, and it has multiple \
stages of analysis and resynthesis."
HOMEPAGE="https://github.com/claytonotey/libsbsms"
COPYRIGHT="2021 Clayton Otey"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/claytonotey/libsbsms/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="4f88d152bc06fedbda9d5d65517d40254a7310c9050601a93122309d45afd2c9"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
PROVIDES="
libsbsms$secondaryArchSuffix = $portVersion
lib:libsbsms$secondaryArchSuffix = $portVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libsbsms${secondaryArchSuffix}_devel = $portVersion
devel:libsbsms$secondaryArchSuffix = $portVersionCompat
"
REQUIRES_devel="
libsbsms$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -S . -B build -G Ninja \
$cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release
cmake --build build $jobArgs
}
INSTALL()
{
cmake --install build
prepareInstalledDevelLibs libsbsms
fixPkgconfig
packageEntries devel $developDir
}