pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add rtaudio version 5.2.0 to pkgsrc-wip



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By:	nros
Date:		Sun Dec 19 12:08:23 2021 +0100
Changeset:	743b37f3d8f0f0bb3f23a605a7143926688079e5

Modified Files:
	Makefile
Added Files:
	rtaudio/DESCR
	rtaudio/Makefile
	rtaudio/PLIST
	rtaudio/buildlink3.mk
	rtaudio/distinfo
	rtaudio/patches/patch-CMakeLists.txt

Log Message:
Add rtaudio version 5.2.0 to pkgsrc-wip

Add rtaudio version 5.2.0 to pkgsrc-wip.
RtAudio is a cross platfrom realtime audio input/output library that
simplifies the interaction with audio hardware and software.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=743b37f3d8f0f0bb3f23a605a7143926688079e5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                             |  1 +
 rtaudio/DESCR                        |  2 ++
 rtaudio/Makefile                     | 23 +++++++++++++++++++++++
 rtaudio/PLIST                        | 11 +++++++++++
 rtaudio/buildlink3.mk                | 13 +++++++++++++
 rtaudio/distinfo                     |  6 ++++++
 rtaudio/patches/patch-CMakeLists.txt | 17 +++++++++++++++++
 7 files changed, 73 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 65d4c9a320..1e34b260d3 100644
--- a/Makefile
+++ b/Makefile
@@ -5036,6 +5036,7 @@ SUBDIR+=	rsound
 SUBDIR+=	rsstail
 SUBDIR+=	rst-mode
 SUBDIR+=	rstudio
+SUBDIR+=	rtaudio
 SUBDIR+=	rtcmix
 SUBDIR+=	rte
 SUBDIR+=	rthread
diff --git a/rtaudio/DESCR b/rtaudio/DESCR
new file mode 100644
index 0000000000..8d932ebb19
--- /dev/null
+++ b/rtaudio/DESCR
@@ -0,0 +1,2 @@
+RtAudio is a cross platfrom realtime audio input/output library that
+simplifies the interaction with audio hardware and software.
diff --git a/rtaudio/Makefile b/rtaudio/Makefile
new file mode 100644
index 0000000000..4567bc7516
--- /dev/null
+++ b/rtaudio/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	rtaudio-5.2.0
+CATEGORIES=	audio
+MASTER_SITES=	http://www.music.mcgill.ca/~gary/rtaudio/release/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.music.mcgill.ca/~gary/rtaudio/
+COMMENT=	Realtime audio IO library
+LICENSE=	mit
+
+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
+
+.include "../../audio/jack/buildlink3.mk"
+.include "../../audio/pulseaudio/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/rtaudio/PLIST b/rtaudio/PLIST
new file mode 100644
index 0000000000..7027af8810
--- /dev/null
+++ b/rtaudio/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+include/rtaudio/RtAudio.h
+include/rtaudio/rtaudio_c.h
+lib/librtaudio.so
+lib/librtaudio.so.6
+lib/librtaudio.so.6.0.2
+lib/pkgconfig/rtaudio.pc
+share/rtaudio/RtAudioConfig-version.cmake
+share/rtaudio/RtAudioConfig.cmake
+share/rtaudio/RtAudioTargets-noconfig.cmake
+share/rtaudio/RtAudioTargets.cmake
diff --git a/rtaudio/buildlink3.mk b/rtaudio/buildlink3.mk
new file mode 100644
index 0000000000..2099375b39
--- /dev/null
+++ b/rtaudio/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	rtaudio
+
+.if !defined(RTAUDIO_BUILDLINK3_MK)
+RTAUDIO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.rtaudio+=	rtaudio>=5.2.0
+BUILDLINK_PKGSRCDIR.rtaudio?=	../../wip/rtaudio
+
+.endif	# RTAUDIO_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-rtaudio
diff --git a/rtaudio/distinfo b/rtaudio/distinfo
new file mode 100644
index 0000000000..6c7de0e34f
--- /dev/null
+++ b/rtaudio/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (rtaudio-5.2.0.tar.gz) = 412cfbbaa2a68b3da0ce09b05256050f552c4d82159a5c899987854365b72e89
+SHA512 (rtaudio-5.2.0.tar.gz) = f0eb656717d1ebf8b36660b9609ca0bfaf9635c41d658dd9dfff559e81e48de6abd4d78afe022cce5e885a2e3ae90ef97a0c6563b57d8c8c1102088e9aa05905
+Size (rtaudio-5.2.0.tar.gz) = 681205 bytes
+SHA1 (patch-CMakeLists.txt) = 7029ffd053158f75650b55bf11ae08cfef1e2bc6
diff --git a/rtaudio/patches/patch-CMakeLists.txt b/rtaudio/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..255090877b
--- /dev/null
+++ b/rtaudio/patches/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+$NetBSD$
+
+* don't include jack etc in the interface library property
+  doing so leads to -ljack without -L when other programs
+  link to RtAudio::rtaudio
+
+--- CMakeLists.txt.orig	2021-12-18 21:04:16.264795127 +0000
++++ CMakeLists.txt
+@@ -276,7 +276,7 @@ target_include_directories(rtaudio
+ # Set compile-time definitions
+ target_compile_definitions(rtaudio PRIVATE ${API_DEFS})
+ target_compile_definitions(rtaudio PRIVATE RTAUDIO_EXPORT)
+-target_link_libraries(rtaudio ${LINKLIBS})
++target_link_libraries(rtaudio PRIVATE ${LINKLIBS})
+ 
+ # Subdirs
+ include(CTest)


Home | Main Index | Thread Index | Old Index