mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
portaudio: add v19.7.0 recipe (#6494)
* portaudio: add v19.7.0 recipe * portaudio: add v19.7.0 recipe * Delete portaudio-19.06.00.recipe * Delete portaudio-19.patchset * portaudio: add OSS detect * portaudio: enabled build * portaudio: disabled x86 * portaudio: re-enabled all builds
This commit is contained in:
59
media-libs/portaudio/patches/portaudio-19.07.00.patchset
Normal file
59
media-libs/portaudio/patches/portaudio-19.07.00.patchset
Normal file
@@ -0,0 +1,59 @@
|
||||
From 3fbfa49f74cfe8ff7413f1bf9a48bfeaeab1f4e9 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Wed, 30 Jul 2014 01:38:19 +0200
|
||||
Subject: Add a case for Haiku in configure.in
|
||||
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 13816fb..5c48cf7 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -390,6 +390,22 @@ case "${host_os}" in
|
||||
SHARED_FLAGS=""
|
||||
;;
|
||||
|
||||
+ haiku* )
|
||||
+ dnl Haiku configuration
|
||||
+
|
||||
+ dnl AC_DEFINE(PA_USE_HAIKU,1)
|
||||
+ AC_DEFINE(PA_USE_SKELETON,1)
|
||||
+
|
||||
+ CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
|
||||
+ # -Werror
|
||||
+ LIBS="-lmedia"
|
||||
+
|
||||
+ SHARED_FLAGS="$LIBS -shared"
|
||||
+ #CFLAGS="$CFLAGS"
|
||||
+ OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/common/pa_ringbuffer.o"
|
||||
+ PADLL="libportaudio.so"
|
||||
+ ;;
|
||||
+
|
||||
*)
|
||||
dnl Unix configuration
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
||||
From 271d0b016f107c7850bdfeac8c0726b710165447 Mon Sep 17 00:00:00 2001
|
||||
From: Ken Mays <kmays2000@gmail.com>
|
||||
Date: Sat, 25 Dec 2021 06:19:07 +0200
|
||||
Subject: Fix OSS detect for Haiku
|
||||
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 5c48cf7..7941bbf 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -127,7 +127,7 @@ fi
|
||||
have_libossaudio=no
|
||||
have_oss=no
|
||||
if test "x$with_oss" != "xno"; then
|
||||
- AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], [have_oss=yes])
|
||||
+ AC_CHECK_HEADERS([private/audio/soundcard.h sys/soundcard.h linux/soundcard.h machine/soundcard.h], [have_oss=yes])
|
||||
if test "x$have_oss" = "xyes"; then
|
||||
AC_CHECK_LIB(ossaudio, _oss_ioctl, have_libossaudio=yes, have_libossaudio=no)
|
||||
fi
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
From 0f9cc6fb255f649db0ffbd4284d11cf09aa71787 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Wed, 30 Jul 2014 01:38:19 +0200
|
||||
Subject: Add a case for Haiku in configure.in
|
||||
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 792cbba..05dcc13 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -335,6 +335,22 @@ case "${host_os}" in
|
||||
SHARED_FLAGS=""
|
||||
;;
|
||||
|
||||
+ haiku* )
|
||||
+ dnl Haiku configuration
|
||||
+
|
||||
+ dnl AC_DEFINE(PA_USE_HAIKU,1)
|
||||
+ AC_DEFINE(PA_USE_SKELETON,1)
|
||||
+
|
||||
+ CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
|
||||
+ # -Werror
|
||||
+ LIBS="-lmedia"
|
||||
+
|
||||
+ SHARED_FLAGS="$LIBS -shared"
|
||||
+ #CFLAGS="$CFLAGS"
|
||||
+ OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/common/pa_ringbuffer.o"
|
||||
+ PADLL="libportaudio.so"
|
||||
+ ;;
|
||||
+
|
||||
*)
|
||||
dnl Unix configuration
|
||||
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
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"
|
||||
SUMMARY="Portable cross-platform audio I/O library"
|
||||
DESCRIPTION="PortAudio is a free, cross-platform, audio I/O library."
|
||||
HOMEPAGE="http://www.portaudio.com"
|
||||
COPYRIGHT="1999-2021 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_URI="http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz"
|
||||
CHECKSUM_SHA256="47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def"
|
||||
SOURCE_DIR="portaudio"
|
||||
PATCHES="portaudio-19.patchset"
|
||||
PATCHES="portaudio-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?all"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
portaudio$secondaryArchSuffix = $portVersion
|
||||
@@ -52,7 +51,7 @@ BUILD()
|
||||
autoreconf -fi
|
||||
git checkout -- depcomp # deleted by autoreconf, but still needed...
|
||||
runConfigure ./configure --enable-cxx --enable-shared
|
||||
make $jobArgs
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
Reference in New Issue
Block a user