mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
It now builds and provides correct library versions. Note it doesn't have any native output driver yet, so it just won't work.
88 lines
1.9 KiB
Bash
88 lines
1.9 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-2011 Ross Bencina and Phil Burk"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="http://portaudio.com/archives/pa_stable_v19_20111121.tgz"
|
|
CHECKSUM_SHA256="9c26d1330d506496789edafe55b0386f20d83c4aa2c0e3f81fbeb0f114ab1b99"
|
|
SOURCE_DIR="portaudio"
|
|
|
|
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="
|
|
devel:libportaudio$secondaryArchSuffix = 2.0.0 compat >= 2
|
|
#devel:libportaudio_static$secondaryArchSuffix = 19
|
|
devel:libportaudiocpp$secondaryArchSuffix = 0.0.12 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
lib:libportaudio$secondaryArchSuffix == 2.0.0
|
|
lib:libportaudiocpp$secondaryArchSuffix == 0.0.12
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
cmd:gcc${secondaryArchSuffix}
|
|
cmd:cmake
|
|
cmd:make
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:cmake
|
|
cmd:dos2unix
|
|
cmd:gcc${secondaryArchSuffix}
|
|
cmd:ld${secondaryArchSuffix}
|
|
cmd:make
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
SOURCE_DIR="portaudio"
|
|
PATCHES="portaudio-19.patchset"
|
|
|
|
BUILD()
|
|
{
|
|
# clean up
|
|
dos2unix qa/loopback/src/qa_tools.h
|
|
|
|
autoreconf -if
|
|
|
|
runConfigure ./configure --enable-cxx --enable-shared --enable-static
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $libDir
|
|
|
|
make install
|
|
|
|
# cp bin/Win32/libportaudio.so $libDir
|
|
# #cp bin/Win32/libportaudio.so $developDir/lib/
|
|
# cp bin/Win32/libportaudio_static.a $developDir/lib/
|
|
# mkdir -p $includeDir
|
|
# cp include/* $includeDir
|
|
|
|
prepareInstalledDevelLibs \
|
|
libportaudio libportaudiocpp
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|