pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rtaudio: add patch to make OSS build on NetBSD
Module Name: pkgsrc-wip
Committed By: Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By: nros
Date: Thu Dec 30 21:45:39 2021 +0100
Changeset: b13487928ca15f0e0bc1c68c38f3222afab2207c
Modified Files:
rtaudio/Makefile
rtaudio/distinfo
Added Files:
rtaudio/patches/patch-RtAudio.cpp
Log Message:
rtaudio: add patch to make OSS build on NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b13487928ca15f0e0bc1c68c38f3222afab2207c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rtaudio/Makefile | 1 -
rtaudio/distinfo | 1 +
rtaudio/patches/patch-RtAudio.cpp | 22 ++++++++++++++++++++++
3 files changed, 23 insertions(+), 1 deletion(-)
diffs:
diff --git a/rtaudio/Makefile b/rtaudio/Makefile
index e6259d498c..3121207cec 100644
--- a/rtaudio/Makefile
+++ b/rtaudio/Makefile
@@ -13,7 +13,6 @@ USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c++
-CMAKE_ARGS+= -DRTAUDIO_API_OSS=OFF
CMAKE_ARGS+= -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
PKGCONFIG_OVERRIDE+= rtaudio.pc.in
diff --git a/rtaudio/distinfo b/rtaudio/distinfo
index 6c7de0e34f..edb0d026da 100644
--- a/rtaudio/distinfo
+++ b/rtaudio/distinfo
@@ -4,3 +4,4 @@ BLAKE2s (rtaudio-5.2.0.tar.gz) = 412cfbbaa2a68b3da0ce09b05256050f552c4d82159a5c8
SHA512 (rtaudio-5.2.0.tar.gz) = f0eb656717d1ebf8b36660b9609ca0bfaf9635c41d658dd9dfff559e81e48de6abd4d78afe022cce5e885a2e3ae90ef97a0c6563b57d8c8c1102088e9aa05905
Size (rtaudio-5.2.0.tar.gz) = 681205 bytes
SHA1 (patch-CMakeLists.txt) = 7029ffd053158f75650b55bf11ae08cfef1e2bc6
+SHA1 (patch-RtAudio.cpp) = aba041863427d2460f7622bb895a246cfed1acee
diff --git a/rtaudio/patches/patch-RtAudio.cpp b/rtaudio/patches/patch-RtAudio.cpp
new file mode 100644
index 0000000000..048727bdb6
--- /dev/null
+++ b/rtaudio/patches/patch-RtAudio.cpp
@@ -0,0 +1,22 @@
+$NetBSD$
+
+* Support older OSS implementations (NetBSD)
+
+--- RtAudio.cpp.orig 2021-12-30 20:21:17.238879764 +0000
++++ RtAudio.cpp
+@@ -9338,6 +9338,15 @@ bool RtApiPulse::probeDeviceOpen( unsign
+ #include <errno.h>
+ #include <math.h>
+
++//older defines
++#if !defined(SNDCTL_DSP_HALT) && defined(SNDCTL_DSP_RESET)
++#define SNDCTL_DSP_HALT SNDCTL_DSP_RESET
++#endif
++
++#if !defined(PCM_CAP_DUPLEX) && defined(DSP_CAP_DUPLEX)
++#define PCM_CAP_DUPLEX DSP_CAP_DUPLEX
++#endif
++
+ static void *ossCallbackHandler(void * ptr);
+
+ // A structure to hold various information related to the OSS API
Home |
Main Index |
Thread Index |
Old Index