libsamplerate, cleanup, move cmake config files to devel package (#8398)

This commit is contained in:
Schrijvers Luc
2023-04-15 13:34:04 +02:00
committed by GitHub
parent d1b8a07716
commit 2801abb35d

View File

@@ -12,17 +12,20 @@ slowing down effects."
HOMEPAGE="http://libsndfile.github.io/libsamplerate/"
COPYRIGHT="2002-2021 Erik de Castro Lopo"
LICENSE="BSD (2-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/libsndfile/libsamplerate/releases/download/$portVersion/libsamplerate-$portVersion.tar.xz"
CHECKSUM_SHA256="3258da280511d24b49d6b08615bbe824d0cacc9842b0e4caf11c52cf2b043893"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libsamplerate$secondaryArchSuffix = $portVersion compat >= 0
cmd:sndfile_resample$secondaryArchSuffix
lib:libsamplerate$secondaryArchSuffix = $portVersion compat >= 0
lib:libsamplerate$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -30,7 +33,7 @@ REQUIRES="
PROVIDES_devel="
libsamplerate${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libsamplerate$secondaryArchSuffix = $portVersion compat >= 0
devel:libsamplerate$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libsamplerate$secondaryArchSuffix == $portVersion base
@@ -49,24 +52,24 @@ BUILD_PREREQUIRES="
BUILD()
{
cmake $cmakeDirArgs \
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE='Release' \
-DBUILD_SHARED_LIBS=TRUE \
.
make $jobArgs
-DBUILD_SHARED_LIBS=TRUE
make -C build $jobArgs
}
INSTALL()
{
make install
make -C build install
prepareInstalledDevelLibs libsamplerate
prepareInstalledDevelLib libsamplerate
fixPkgconfig
# devel package
packageEntries devel \
$docDir \
$developDir
$developDir \
$documentationDir \
$libDir/cmake
}
TEST()