From 02da9d642e73f169451b23191fed582d8f5a0ccf Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 6 Feb 2020 14:23:18 +0100 Subject: [PATCH] Actually add the new portaudio recipe. --- .../portaudio/portaudio-19.06.00.recipe | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 media-libs/portaudio/portaudio-19.06.00.recipe diff --git a/media-libs/portaudio/portaudio-19.06.00.recipe b/media-libs/portaudio/portaudio-19.06.00.recipe new file mode 100644 index 000000000..63c49627e --- /dev/null +++ b/media-libs/portaudio/portaudio-19.06.00.recipe @@ -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 +}