Actually add the new portaudio recipe.

This commit is contained in:
Adrien Destugues
2020-02-06 14:23:18 +01:00
parent 020feea2f0
commit 02da9d642e

View File

@@ -0,0 +1,71 @@
SUMMARY="A free, cross-platform, audio I/O library"
DESCRIPTION="
Port Audio is a free, cross-platform, audio I/O library."
HOMEPAGE="http://portaudio.com"
COPYRIGHT="1999-2016 Ross Bencina and Phil Burk"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz"
CHECKSUM_SHA256="f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513"
SOURCE_DIR="portaudio"
PATCHES="portaudio-19.patchset"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
PROVIDES="
portaudio$secondaryArchSuffix = $portVersion
lib:libportaudio$secondaryArchSuffix = 2.0.0 compat >= 2
lib:libportaudiocpp$secondaryArchSuffix = 0.0.12 compat >= 0
"
REQUIRES="
haiku${secondaryArchSuffix}
"
PROVIDES_devel="
portaudio${secondaryArchSuffix}_devel = $portVersion
devel:libportaudio$secondaryArchSuffix = 2.0.0 compat >= 2
devel:libportaudiocpp$secondaryArchSuffix = 0.0.12 compat >= 0
"
REQUIRES_devel="
lib:libportaudio$secondaryArchSuffix == 2.0.0
lib:libportaudiocpp$secondaryArchSuffix == 0.0.12
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc${secondaryArchSuffix}
cmd:git
cmd:ld${secondaryArchSuffix}
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
git checkout -- depcomp # deleted by autoreconf, but still needed...
runConfigure ./configure --enable-cxx --enable-shared
make $jobArgs
}
INSTALL()
{
mkdir -p $libDir
make install
prepareInstalledDevelLibs \
libportaudio libportaudiocpp
fixPkgconfig
packageEntries devel \
$developDir
}