pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio Remove audio/portaudio, replacement audio/portau...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f2f02dde5306
branches:  trunk
changeset: 398554:f2f02dde5306
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jul 21 23:08:22 2019 +0000

description:
Remove audio/portaudio, replacement audio/portaudio-devel.

This is v18 of the library. portaudio-devel is v19.
v19's initial release was in 2007, this was last updated in 2003.

Nothing is using this now.

diffstat:

 audio/Makefile                   |   3 +-
 audio/portaudio/DESCR            |  12 ----
 audio/portaudio/Makefile         |  38 ---------------
 audio/portaudio/PLIST            |   3 -
 audio/portaudio/buildlink3.mk    |  13 -----
 audio/portaudio/distinfo         |  12 ----
 audio/portaudio/patches/patch-aa |  99 ----------------------------------------
 audio/portaudio/patches/patch-ac |  58 -----------------------
 audio/portaudio/patches/patch-ad |  20 --------
 audio/portaudio/patches/patch-ae |  15 ------
 audio/portaudio/patches/patch-af |  33 -------------
 audio/portaudio/patches/patch-ag |  48 -------------------
 12 files changed, 1 insertions(+), 353 deletions(-)

diffs (truncated from 412 to 300 lines):

diff -r 52e04716883f -r f2f02dde5306 audio/Makefile
--- a/audio/Makefile    Sun Jul 21 22:48:11 2019 +0000
+++ b/audio/Makefile    Sun Jul 21 23:08:22 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.559 2019/07/08 16:46:31 nia Exp $
+# $NetBSD: Makefile,v 1.560 2019/07/21 23:08:22 nia Exp $
 #
 
 COMMENT=       Audio tools
@@ -377,7 +377,6 @@
 SUBDIR+=       picard
 SUBDIR+=       playitslowly
 SUBDIR+=       pocketsphinx
-SUBDIR+=       portaudio
 SUBDIR+=       portaudio-devel
 SUBDIR+=       pulseaudio
 SUBDIR+=       py-acoustid
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/DESCR
--- a/audio/portaudio/DESCR     Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-PortAudio is a free, cross platform, open-source, audio I/O library.  It
-lets you write simple audio programs in 'C' that will compile and run on
-many platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and
-BeOS. PortAudio is intended to promote the exchange of audio synthesis
-software between developers on different platforms, and was recently
-selected as the audio component of a larger PortMusic project that includes
-MIDI and sound file support.
-
-PortAudio provides a very simple API for recording and/or playing sound
-using a simple callback function.  Example programs are included that
-synthesize sine waves and pink noise, perform fuzz distortion on a guitar,
-list available audio devices, etc.
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/Makefile
--- a/audio/portaudio/Makefile  Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-# $NetBSD: Makefile,v 1.22 2018/02/28 21:46:51 wiz Exp $
-
-DISTNAME=      portaudio_v18_1
-PKGNAME=       portaudio-18.1
-PKGREVISION=   4
-CATEGORIES=    audio
-MASTER_SITES=  http://www.portaudio.com/archives/
-EXTRACT_SUFX=  .zip
-
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://www.portaudio.com/
-COMMENT=       Portable cross-platform Audio API
-LICENSE=       mit
-
-NOT_FOR_PLATFORM=      Interix-*-*
-
-USE_TOOLS+=            gmake
-USE_LIBTOOL=           yes
-GNU_CONFIGURE=         yes
-
-CFLAGS.Darwin=         -Ipablio
-
-INSTALLATION_DIRS+=    lib include
-
-.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
-RT_LIB_SCHED=          -lrt
-.else
-RT_LIB_SCHED=          # empty
-.endif
-MAKE_ENV+=             RT_LIB_SCHED=${RT_LIB_SCHED}
-
-pre-configure:
-       ${CHMOD} 755 ${WRKSRC:Q}/configure
-
-.include "../../mk/pthread.buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/PLIST
--- a/audio/portaudio/PLIST     Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2004/10/05 03:53:15 ben Exp $
-include/portaudio.h
-lib/libportaudio.la
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/buildlink3.mk
--- a/audio/portaudio/buildlink3.mk     Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.11 2018/01/07 13:03:56 rillig Exp $
-
-BUILDLINK_TREE+=       portaudio
-
-.if !defined(PORTAUDIO_BUILDLINK3_MK)
-PORTAUDIO_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.portaudio+=      portaudio>=18.1
-BUILDLINK_ABI_DEPENDS.portaudio+=      portaudio>=18.1nb2
-BUILDLINK_PKGSRCDIR.portaudio?=                ../../audio/portaudio
-.endif # PORTAUDIO_BUILDLINK3_MK
-
-BUILDLINK_TREE+=       -portaudio
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/distinfo
--- a/audio/portaudio/distinfo  Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: distinfo,v 1.15 2018/02/28 21:46:51 wiz Exp $
-
-SHA1 (portaudio_v18_1.zip) = a460ac5484137d77df17a95ce844ff7f178305b1
-RMD160 (portaudio_v18_1.zip) = 3352d70225a81aae80eefabc3701658da0c750c2
-SHA512 (portaudio_v18_1.zip) = 991be0640101bb3ec75d8168db81288f66cf876bdd3029317bc29f8711770cf93ec680bb084a3e61a9cb58258b8f08e4e1d9d84e8b7adf10f03a0f7c01dfd306
-Size (portaudio_v18_1.zip) = 550130 bytes
-SHA1 (patch-aa) = e522bfbf7f69d6f15fd0a32e01a480db922acc56
-SHA1 (patch-ac) = d8a92333a77a3fc7079c55bec939142308569536
-SHA1 (patch-ad) = 5a343e721ae183facc58195026c7e5c49536632a
-SHA1 (patch-ae) = c2744f10d80a478ad571fcce82bf301d6c50cb59
-SHA1 (patch-af) = fb0c8c9c78b4726d86281edcc57718952107a7a7
-SHA1 (patch-ag) = 8aadcd18189dd1c8ae64885dbd209e5d7eae63a1
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/patches/patch-aa
--- a/audio/portaudio/patches/patch-aa  Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/04/20 17:52:48 ben Exp $
-
---- pa_unix_oss/pa_unix.c.orig Sat Nov 22 17:06:46 2003
-+++ pa_unix_oss/pa_unix.c      Sat Nov 22 17:13:50 2003
-@@ -375,7 +375,11 @@
-  * and the watchdog will detect it.
-  */
- 
--#define SCHEDULER_POLICY         SCHED_RR
-+#ifndef _POSIX_THREAD_IS_GNU_PTH
-+# define SCHEDULER_POLICY         SCHED_RR
-+#else
-+# define SCHEDULER_POLICY 0
-+#endif
- #define WATCHDOG_MAX_SECONDS    (3)
- #define WATCHDOG_INTERVAL_USEC  (1000000)
- 
-@@ -411,13 +415,16 @@
- 
- static PaError PaHost_WatchDogProc( PaHostSoundControl   *pahsc )
- {
-+#ifndef _POSIX_THREAD_IS_GNU_PTH
-     struct sched_param    schp = { 0 };
-+#endif
-     int                   maxPri;
- 
- #ifdef GNUSTEP
-     GSRegisterCurrentThread(); /* SB20010904 */
- #endif
- 
-+#ifndef _POSIX_THREAD_IS_GNU_PTH
- /* Run at a priority level above audio thread so we can still run if it hangs. */
- /* Rise more than 1 because of rumored off-by-one scheduler bugs. */
-     schp.sched_priority = pahsc->pahsc_AudioPriority + 4;
-@@ -429,7 +436,7 @@
-         ERR_RPT(("PaHost_WatchDogProc: cannot set watch dog priority!\n"));
-         goto killAudio;
-     }
--
-+#endif
-     /* Compare watchdog time with audio and canary thread times. */
-     /* Sleep for a while or until thread cancelled. */
-     while( pahsc->pahsc_WatchDogRun )
-@@ -465,7 +472,8 @@
-     return 0;
- 
- lowerAudio:
--    {
-+#ifndef _POSIX_THREAD_IS_GNU_PTH
-+     {
-         struct sched_param    schat = { 0 };
-         if( sched_setscheduler(pahsc->pahsc_AudioThreadPID, SCHED_OTHER, &schat) != 0)
-         {
-@@ -478,7 +486,9 @@
-             goto cleanup;
-         }
-     }
--
-+#else
-+   goto cleanup;
-+#endif
- killAudio:
-     ERR_RPT(("PaHost_WatchDogProc: killing hung audio thread!\n"));
-     pthread_kill( pahsc->pahsc_AudioThread, SIGKILL );
-@@ -574,18 +584,19 @@
- {
-     PaHostSoundControl  *pahsc;
-     PaError              result = paNoError;
-+#ifndef _POSIX_THREAD_IS_GNU_PTH   
-     struct sched_param   schp = { 0 };
--
-+#endif
-     pahsc = (PaHostSoundControl *) past->past_DeviceData;
-     if( pahsc == NULL ) return paInternalError;
- 
-     pahsc->pahsc_AudioThreadPID = getpid();
-     DBUG(("PaHost_BoostPriority: audio PID = %d\n", pahsc->pahsc_AudioThreadPID ));
--
-+#ifndef _POSIX_THREAD_IS_GNU_PTH
-     /* Choose a priority in the middle of the range. */
-     pahsc->pahsc_AudioPriority = (sched_get_priority_max(SCHEDULER_POLICY) -
-                                   sched_get_priority_min(SCHEDULER_POLICY)) / 2;
--    schp.sched_priority = pahsc->pahsc_AudioPriority;
-+   schp.sched_priority = pahsc->pahsc_AudioPriority;
- 
-     if (sched_setscheduler(0, SCHEDULER_POLICY, &schp) != 0)
-     {
-@@ -597,7 +608,10 @@
-         /* We are running at high priority so we should have a watchdog in case audio goes wild. */
-         result = PaHost_StartWatchDog( pahsc );
-     }
--
-+#else
-+   DBUG(("PortAudio: audio callback priority set to level %d - call ignored with GNU Pth\n", schp.sched_priority));
-+   result = PaHost_StartWatchDog( pahsc );
-+#endif
-     return result;
- }
- 
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/patches/patch-ac
--- a/audio/portaudio/patches/patch-ac  Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-$NetBSD: patch-ac,v 1.9 2018/02/28 21:46:52 wiz Exp $
-
---- Makefile.in.orig   2003-02-11 14:24:56.000000000 +0000
-+++ Makefile.in
-@@ -5,14 +5,14 @@
- #
- 
- PREFIX = @prefix@
--CC = @CC@
-+CC = ${LIBTOOL} --mode=compile @CC@
- CFLAGS = @CFLAGS@ -Ipa_common
--LIBS = @LIBS@
-+LIBS = ${LIBOSSAUDIO} ${RT_LIB_SCHED} -L@prefix@/lib ${COMPILER_RPATH_FLAG}@prefix@/lib @LIBS@
- AR = @AR@
- RANLIB = @RANLIB@
- INSTALL = @INSTALL@
- SHARED_FLAGS = @SHARED_FLAGS@
--DLL_LIBS = @DLL_LIBS@
-+DLL_LIBS = @DLL_LIBS@ ${LIBOSSAUDIO} ${RT_LIB_SCHED}
- 
- OTHER_OBJS = @OTHER_OBJS@
- 
-@@ -57,20 +57,16 @@ all: lib/$(PALIB) lib/$(PADLLV) tests
- tests: bin/ $(TESTS)
- 
- lib/$(PALIB): lib/ $(OBJS) Makefile $(PAINC)
--      $(AR) ruv lib/$(PALIB) $(OBJS)
--      $(RANLIB) lib/$(PALIB)
-+      ${LIBTOOL} --mode=link @CC@ -o lib/${PALIB:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 0:18:0 $(LDFLAGS) $(DLL_LIBS)
- 
- lib/$(PADLLV): lib/ $(OBJS) Makefile $(PAINC)
--      $(CC) $(SHARED_FLAGS) -o lib/$(PADLLV) $(OBJS) $(DLL_LIBS)
- 
- $(TESTS): bin/%: lib/$(PALIB) Makefile $(PAINC) pa_tests/%.c
--      $(CC) -o $@ $(CFLAGS) pa_tests/$*.c lib/$(PALIB) $(LIBS)
-+      ${LIBTOOL} --mode=link @CC@ -o $@ $(LDFLAGS) $(CFLAGS) pa_tests/$*.c lib/${PALIB:.a=.la} $(LIBS)
- 
- install: lib/$(PALIB) lib/$(PADLLV)
--      $(INSTALL) -m 644 lib/$(PADLLV) $(PREFIX)/lib/$(PADLLV)
--      $(INSTALL) -m 644 lib/$(PALIB) $(PREFIX)/lib/$(PALIB)
--      cd $(PREFIX)/lib && rm -f $(PADLL) && ln -s $(PADLLV) $(PADLL)
--      $(INSTALL) -m 644 pa_common/portaudio.h $(PREFIX)/include/portaudio.h
-+      ${LIBTOOL} --mode=install $(INSTALL) -m 644 lib/${PALIB:.a=.la} $(DESTDIR)$(PREFIX)/lib/
-+      $(INSTALL) -m 644 pa_common/portaudio.h $(DESTDIR)$(PREFIX)/include/portaudio.h
-       @echo ""
-       @echo "------------------------------------------------------------"
-       @echo "PortAudio was successfully installed."
-@@ -89,8 +86,8 @@ clean:
- %.o: %.c Makefile $(PAINC)
-       $(CC) -c $(CFLAGS) $< -o $@
- 
--bin:
-+bin/:
-       mkdir bin
- 
--lib:
-+lib/:
-       mkdir lib
diff -r 52e04716883f -r f2f02dde5306 audio/portaudio/patches/patch-ad
--- a/audio/portaudio/patches/patch-ad  Sun Jul 21 22:48:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2004/04/20 17:52:48 ben Exp $
-
---- pa_tests/patest_record.c.orig      Sat Nov 22 17:26:48 2003
-+++ pa_tests/patest_record.c   Sat Nov 22 17:27:12 2003
-@@ -133,6 +133,7 @@
-                          unsigned long framesPerBuffer,
-                          PaTimestamp outTime, void *userData )
- {
-+    int framesToPlay, samplesToPlay, samplesPerBuffer;
-     paTestData *data = (paTestData*)userData;
-     SAMPLE *rptr = &data->recordedSamples[data->frameIndex * NUM_CHANNELS];
-     SAMPLE *wptr = (SAMPLE*)outputBuffer;
-@@ -141,7 +142,6 @@
-     unsigned int framesLeft = data->maxFrameIndex - data->frameIndex;
-     (void) inputBuffer; /* Prevent unused variable warnings. */
-     (void) outTime;



Home | Main Index | Thread Index | Old Index