pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/portaudio-devel portaudio-devel: Support C++ bin...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1e5dac135231
branches: trunk
changeset: 342234:1e5dac135231
user: nia <nia%pkgsrc.org@localhost>
date: Wed Oct 16 12:50:27 2019 +0000
description:
portaudio-devel: Support C++ bindings, ALSA, JACK.
Bump PKGREVISION.
diffstat:
audio/portaudio-devel/Makefile | 23 +++++---
audio/portaudio-devel/PLIST | 24 +++++++++-
audio/portaudio-devel/buildlink3.mk | 6 +-
audio/portaudio-devel/distinfo | 3 +-
audio/portaudio-devel/options.mk | 23 +++++++++
audio/portaudio-devel/patches/patch-src_hostapi_alsa_pa__linux__alsa.c | 17 +++++++
6 files changed, 82 insertions(+), 14 deletions(-)
diffs (168 lines):
diff -r a4f1b67d1023 -r 1e5dac135231 audio/portaudio-devel/Makefile
--- a/audio/portaudio-devel/Makefile Wed Oct 16 12:47:20 2019 +0000
+++ b/audio/portaudio-devel/Makefile Wed Oct 16 12:50:27 2019 +0000
@@ -1,26 +1,30 @@
-# $NetBSD: Makefile,v 1.13 2017/04/27 07:14:01 nat Exp $
+# $NetBSD: Makefile,v 1.14 2019/10/16 12:50:27 nia Exp $
DISTNAME= pa_stable_v190600_20161030
PKGNAME= portaudio-devel-20161030
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://www.portaudio.com/archives/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://www.portaudio.com/
-COMMENT= Portable cross-platform Audio API
+COMMENT= Portable cross-platform audio API
LICENSE= mit
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake pkg-config
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+GNU_CONFIGURE_LIBSUBDIR= portaudio2
+
NOT_FOR_PLATFORM= Interix-*-*
-USE_TOOLS+= gmake pkg-config
-USE_LIBTOOL= yes
-GNU_CONFIGURE= yes
-GNU_CONFIGURE_LIBSUBDIR=portaudio2
+CONFIGURE_ARGS+= --enable-cxx
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/portaudio2
-CONFIGURE_ARGS+= --without-alsa
CONFIGURE_ARGS+= --disable-mac-universal
+
LDFLAGS+= ${LIBOSSAUDIO}
PKGCONFIG_OVERRIDE= portaudio-2.0.pc.in
WRKSRC= ${WRKDIR}/portaudio
@@ -37,11 +41,12 @@
SUBST_CLASSES+= pc
SUBST_STAGE.pc= pre-configure
SUBST_MESSAGE.pc= Fixing pkgconfig directory
-SUBST_FILES.pc= Makefile.in
+SUBST_FILES.pc= Makefile.in bindings/cpp/Makefile.in
SUBST_SED.pc= -e 's/$$(libdir)\/pkgconfig/$$(prefix)\/lib\/pkgconfig/g'
CFLAGS.Darwin+= -Wno-deprecated-declarations
+.include "options.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r a4f1b67d1023 -r 1e5dac135231 audio/portaudio-devel/PLIST
--- a/audio/portaudio-devel/PLIST Wed Oct 16 12:47:20 2019 +0000
+++ b/audio/portaudio-devel/PLIST Wed Oct 16 12:50:27 2019 +0000
@@ -1,4 +1,26 @@
-@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:32:20 joerg Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/10/16 12:50:27 nia Exp $
+${PLIST.alsa}include/portaudio2/pa_linux_alsa.h
include/portaudio2/portaudio.h
+include/portaudio2/portaudiocpp/AutoSystem.hxx
+include/portaudio2/portaudiocpp/BlockingStream.hxx
+include/portaudio2/portaudiocpp/CFunCallbackStream.hxx
+include/portaudio2/portaudiocpp/CallbackInterface.hxx
+include/portaudio2/portaudiocpp/CallbackStream.hxx
+include/portaudio2/portaudiocpp/CppFunCallbackStream.hxx
+include/portaudio2/portaudiocpp/Device.hxx
+include/portaudio2/portaudiocpp/DirectionSpecificStreamParameters.hxx
+include/portaudio2/portaudiocpp/Exception.hxx
+include/portaudio2/portaudiocpp/HostApi.hxx
+include/portaudio2/portaudiocpp/InterfaceCallbackStream.hxx
+include/portaudio2/portaudiocpp/MemFunCallbackStream.hxx
+include/portaudio2/portaudiocpp/PortAudioCpp.hxx
+include/portaudio2/portaudiocpp/SampleDataFormat.hxx
+include/portaudio2/portaudiocpp/Stream.hxx
+include/portaudio2/portaudiocpp/StreamParameters.hxx
+include/portaudio2/portaudiocpp/System.hxx
+include/portaudio2/portaudiocpp/SystemDeviceIterator.hxx
+include/portaudio2/portaudiocpp/SystemHostApiIterator.hxx
lib/pkgconfig/portaudio-2.0.pc
+lib/pkgconfig/portaudiocpp.pc
lib/portaudio2/libportaudio.la
+lib/portaudio2/libportaudiocpp.la
diff -r a4f1b67d1023 -r 1e5dac135231 audio/portaudio-devel/buildlink3.mk
--- a/audio/portaudio-devel/buildlink3.mk Wed Oct 16 12:47:20 2019 +0000
+++ b/audio/portaudio-devel/buildlink3.mk Wed Oct 16 12:50:27 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2009/03/20 19:23:58 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2019/10/16 12:50:27 nia Exp $
BUILDLINK_TREE+= portaudio-devel
@@ -8,8 +8,8 @@
BUILDLINK_API_DEPENDS.portaudio-devel+= portaudio-devel>=20060521
BUILDLINK_PKGSRCDIR.portaudio-devel?= ../../audio/portaudio-devel
BUILDLINK_INCDIRS.portaudio-devel?= include/portaudio2
-BUILDLINK_LIBDIRS.portaudio-devel?= lib/portaudio2
-BUILDLINK_CPPFLAGS.portaudio-devel?= -I${BUILDLINK_PREFIX.portaudio-devel}/include/portaudio2
+BUILDLINK_LIBDIRS.portaudio-devel+= lib/portaudio2
+BUILDLINK_CPPFLAGS.portaudio-devel+= -I${BUILDLINK_PREFIX.portaudio-devel}/include/portaudio2
.endif # PORTAUDIO_DEVEL_BUILDLINK3_MK
BUILDLINK_TREE+= -portaudio-devel
diff -r a4f1b67d1023 -r 1e5dac135231 audio/portaudio-devel/distinfo
--- a/audio/portaudio-devel/distinfo Wed Oct 16 12:47:20 2019 +0000
+++ b/audio/portaudio-devel/distinfo Wed Oct 16 12:50:27 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2017/04/27 07:14:01 nat Exp $
+$NetBSD: distinfo,v 1.11 2019/10/16 12:50:27 nia Exp $
SHA1 (pa_stable_v190600_20161030.tgz) = 56c596bba820d90df7d057d8f6a0ec6bf9ab82e8
RMD160 (pa_stable_v190600_20161030.tgz) = e6e5cd3f3cb7469aa17549c189e445d573567e13
SHA512 (pa_stable_v190600_20161030.tgz) = 7ec692cbd8c23878b029fad9d9fd63a021f57e60c4921f602995a2fca070c29f17a280c7f2da5966c4aad29d28434538452f4c822eacf3a60af59a6dc8e9704c
Size (pa_stable_v190600_20161030.tgz) = 1450572 bytes
+SHA1 (patch-src_hostapi_alsa_pa__linux__alsa.c) = b83c77d1dd23ab16f940dc11228bee3460d2a58b
SHA1 (patch-src_hostapi_oss_pa__unix__oss.c) = 81b6633bdb1cac8d3397bd7ebb6da1e28b68e3df
diff -r a4f1b67d1023 -r 1e5dac135231 audio/portaudio-devel/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/options.mk Wed Oct 16 12:50:27 2019 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2019/10/16 12:50:27 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.portaudio
+PKG_SUPPORTED_OPTIONS= alsa jack
+PKG_SUGGESTED_OPTIONS.Linux= alsa
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= alsa
+.if !empty(PKG_OPTIONS:Malsa)
+PLIST.alsa= yes
+CONFIGURE_ARGS+= --with-alsa
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mjack)
+CONFIGURE_ARGS+= --with-jack
+.include "../../audio/jack/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-jack
+.endif
diff -r a4f1b67d1023 -r 1e5dac135231 audio/portaudio-devel/patches/patch-src_hostapi_alsa_pa__linux__alsa.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/patches/patch-src_hostapi_alsa_pa__linux__alsa.c Wed Oct 16 12:50:27 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_hostapi_alsa_pa__linux__alsa.c,v 1.1 2019/10/16 12:50:27 nia Exp $
+
+Support building on non-Linux systems.
+
+--- src/hostapi/alsa/pa_linux_alsa.c.orig 2016-10-30 01:23:04.000000000 +0000
++++ src/hostapi/alsa/pa_linux_alsa.c
+@@ -79,6 +79,10 @@
+
+ #include "pa_linux_alsa.h"
+
++#ifndef ESTRPIPE
++ #define ESTRPIPE EPIPE
++#endif
++
+ /* Add missing define (for compatibility with older ALSA versions) */
+ #ifndef SND_PCM_TSTAMP_ENABLE
+ #define SND_PCM_TSTAMP_ENABLE SND_PCM_TSTAMP_MMAP
Home |
Main Index |
Thread Index |
Old Index