Saturday, July 31, 2021

UPDATE: portaudio v1970

Here is an update to portaudio v1970.

Not much in the changelog.. mostly Windows and macOS changes, what's left..

- White spaces and indentation were cleaned up.
- Fix builds with parallel makes


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/Makefile,v
retrieving revision 1.20
diff -u -p -u -p -r1.20 Makefile
--- Makefile 12 Jul 2019 20:43:39 -0000 1.20
+++ Makefile 31 Jul 2021 04:19:19 -0000
@@ -2,10 +2,10 @@

COMMENT= portable cross-platform audio API

-DISTNAME = pa_stable_v190600_20161030
-PKGNAME = portaudio-svn-1960
+DISTNAME = pa_stable_v190700_20210406
+PKGNAME = portaudio-svn-1970
CATEGORIES= audio
-MASTER_SITES = http://www.portaudio.com/archives/
+MASTER_SITES = http://files.portaudio.com/archives/
EXTRACT_SUFX = .tgz

SHARED_LIBS = portaudio 1.2
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/distinfo,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 distinfo
--- distinfo 6 Feb 2019 14:21:15 -0000 1.6
+++ distinfo 31 Jul 2021 04:19:21 -0000
@@ -1,2 +1,2 @@
-SHA256 (pa_stable_v190600_20161030.tgz) = 9aIdfc1u6EOXRG+h+hoGdbsuikptzrQwWoQEaY2NFRM=
-SIZE (pa_stable_v190600_20161030.tgz) = 1450572
+SHA256 (pa_stable_v190700_20210406.tgz) = R++/Qsd8GaBdIuYn1Chz6ZHsDBNXIZwNdM5qKUjLLe8=
+SIZE (pa_stable_v190700_20210406.tgz) = 1462695
Index: patches/patch-Makefile_in
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/patches/patch-Makefile_in,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 patch-Makefile_in
--- patches/patch-Makefile_in 12 Mar 2013 00:59:50 -0000 1.4
+++ patches/patch-Makefile_in 31 Jul 2021 04:22:35 -0000
@@ -1,15 +1,17 @@
$OpenBSD: patch-Makefile_in,v 1.4 2013/03/12 00:59:50 brad Exp $
---- Makefile.in.orig Thu Jul 5 23:44:34 2012
-+++ Makefile.in Thu Jul 5 23:49:34 2012
-@@ -146,6 +146,7 @@ SRC_DIRS = \
- src/hostapi/dsound \
+
+Index: Makefile.in
+--- Makefile.in.orig
++++ Makefile.in
+@@ -147,6 +147,7 @@ SRC_DIRS = \
src/hostapi/jack \
src/hostapi/oss \
+ src/hostapi/skeleton \
+ src/hostapi/sndio \
src/hostapi/wasapi \
src/hostapi/wdmks \
src/hostapi/wmme \
-@@ -155,7 +156,7 @@ SRC_DIRS = \
+@@ -156,7 +157,7 @@ SRC_DIRS = \
SUBDIRS =
@ENABLE_CXX_TRUE@SUBDIRS += bindings/cpp

Index: patches/patch-configure_in
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/patches/patch-configure_in,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 patch-configure_in
--- patches/patch-configure_in 6 Feb 2019 14:21:15 -0000 1.5
+++ patches/patch-configure_in 31 Jul 2021 04:22:49 -0000
@@ -1,8 +1,9 @@
$OpenBSD: patch-configure_in,v 1.5 2019/02/06 14:21:15 jca Exp $
+
Index: configure.in
--- configure.in.orig
+++ configure.in
-@@ -24,6 +24,10 @@ AC_ARG_WITH(alsa,
+@@ -33,6 +33,10 @@ AC_ARG_WITH(alsa,
AS_HELP_STRING([--with-alsa], [Enable support for ALSA @<:@autodetect@:>@]),
[with_alsa=$withval])

@@ -13,7 +14,7 @@ Index: configure.in
AC_ARG_WITH(jack,
AS_HELP_STRING([--with-jack], [Enable support for JACK @<:@autodetect@:>@]),
[with_jack=$withval])
-@@ -120,6 +124,10 @@ have_alsa=no
+@@ -129,6 +133,10 @@ have_alsa=no
if test "x$with_alsa" != "xno"; then
AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
fi
@@ -24,7 +25,7 @@ Index: configure.in
have_asihpi=no
if test "x$with_asihpi" != "xno"; then
AC_CHECK_LIB(hpi, HPI_SubSysCreate, have_asihpi=yes, have_asihpi=no, -lm)
-@@ -406,6 +414,13 @@ case "${host_os}" in
+@@ -401,6 +409,13 @@ case "${host_os}" in
AC_DEFINE(PA_USE_ALSA,1)
fi

@@ -38,7 +39,7 @@ Index: configure.in
if [[ "$have_jack" = "yes" ] && [ "$with_jack" != "no" ]] ; then
DLL_LIBS="$DLL_LIBS $JACK_LIBS"
CFLAGS="$CFLAGS $JACK_CFLAGS"
-@@ -509,6 +524,7 @@ case "$target_os" in
+@@ -504,6 +519,7 @@ case "$target_os" in
;;
*)
AC_MSG_RESULT([
Index: patches/patch-include_portaudio_h
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/patches/patch-include_portaudio_h,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-include_portaudio_h
--- patches/patch-include_portaudio_h 6 Feb 2019 14:21:15 -0000 1.3
+++ patches/patch-include_portaudio_h 31 Jul 2021 04:22:59 -0000
@@ -1,4 +1,5 @@
$OpenBSD: patch-include_portaudio_h,v 1.3 2019/02/06 14:21:15 jca Exp $
+
Index: include/portaudio.h
--- include/portaudio.h.orig
+++ include/portaudio.h
Index: patches/patch-portaudio-2_0_pc_in
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/patches/patch-portaudio-2_0_pc_in,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-portaudio-2_0_pc_in
--- patches/patch-portaudio-2_0_pc_in 12 Mar 2013 00:59:50 -0000 1.1
+++ patches/patch-portaudio-2_0_pc_in 31 Jul 2021 04:23:45 -0000
@@ -1,6 +1,8 @@
$OpenBSD: patch-portaudio-2_0_pc_in,v 1.1 2013/03/12 00:59:50 brad Exp $
---- portaudio-2.0.pc.in.orig Sun Sep 2 22:02:42 2012
-+++ portaudio-2.0.pc.in Sun Sep 2 22:05:07 2012
+
+Index: portaudio-2.0.pc.in
+--- portaudio-2.0.pc.in.orig
++++ portaudio-2.0.pc.in
@@ -8,5 +8,6 @@ Description: Portable audio I/O
Requires:
Version: 19
Index: patches/patch-src_os_unix_pa_unix_hostapis_c
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/patches/patch-src_os_unix_pa_unix_hostapis_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_os_unix_pa_unix_hostapis_c
--- patches/patch-src_os_unix_pa_unix_hostapis_c 12 Mar 2013 00:59:50 -0000 1.2
+++ patches/patch-src_os_unix_pa_unix_hostapis_c 31 Jul 2021 04:24:19 -0000
@@ -1,6 +1,8 @@
$OpenBSD: patch-src_os_unix_pa_unix_hostapis_c,v 1.2 2013/03/12 00:59:50 brad Exp $
---- src/os/unix/pa_unix_hostapis.c.orig Thu Jul 5 23:44:45 2012
-+++ src/os/unix/pa_unix_hostapis.c Thu Jul 5 23:49:33 2012
+
+Index: src/os/unix/pa_unix_hostapis.c
+--- src/os/unix/pa_unix_hostapis.c.orig
++++ src/os/unix/pa_unix_hostapis.c
@@ -44,6 +44,7 @@

PaError PaJack_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index );
Index: patches/patch-src_os_unix_pa_unix_util_c
===================================================================
RCS file: /home/cvs/ports/audio/portaudio-svn/patches/patch-src_os_unix_pa_unix_util_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_os_unix_pa_unix_util_c
--- patches/patch-src_os_unix_pa_unix_util_c 12 Mar 2013 00:59:50 -0000 1.2
+++ patches/patch-src_os_unix_pa_unix_util_c 31 Jul 2021 04:23:24 -0000
@@ -1,6 +1,8 @@
$OpenBSD: patch-src_os_unix_pa_unix_util_c,v 1.2 2013/03/12 00:59:50 brad Exp $
---- src/os/unix/pa_unix_util.c.orig Thu Jul 5 23:44:45 2012
-+++ src/os/unix/pa_unix_util.c Thu Jul 5 23:49:33 2012
+
+Index: src/os/unix/pa_unix_util.c
+--- src/os/unix/pa_unix_util.c.orig
++++ src/os/unix/pa_unix_util.c
@@ -251,6 +251,7 @@ static PaError BoostPriority( PaUnixThread* self )

assert( self );
@@ -23,7 +25,7 @@ $OpenBSD: patch-src_os_unix_pa_unix_util
PA_UNLESS( !pthread_attr_init( &attr ), paInternalError );
+#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING > 0)
/* Priority relative to other processes */
- PA_UNLESS( !pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM ), paInternalError );
+ PA_UNLESS( !pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM ), paInternalError );
+

No comments:

Post a Comment