mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
libsamplerate, cleanup, move cmake config files to devel package (#8398)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user