Files
haikuports/media-libs/portaudio/portaudio-19.06.00.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

72 lines
1.6 KiB
Bash

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="?all"
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
}