pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/portaudio-devel Initial import for portaudio-dev...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9885f287bf15
branches:  trunk
changeset: 513159:9885f287bf15
user:      ben <ben%pkgsrc.org@localhost>
date:      Sun May 21 22:21:10 2006 +0000

description:
Initial import for portaudio-devel-20060521 (at this moment also known
as portaudio version 19), a portable cross-platform Audio API.

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.

diffstat:

 audio/portaudio-devel/DESCR            |  12 +++++++++++
 audio/portaudio-devel/Makefile         |  33 ++++++++++++++++++++++++++++++++
 audio/portaudio-devel/PLIST            |   6 +++++
 audio/portaudio-devel/buildlink3.mk    |  21 ++++++++++++++++++++
 audio/portaudio-devel/distinfo         |   8 +++++++
 audio/portaudio-devel/patches/patch-aa |  14 +++++++++++++
 audio/portaudio-devel/patches/patch-ab |  13 ++++++++++++
 audio/portaudio-devel/patches/patch-ac |  35 ++++++++++++++++++++++++++++++++++
 8 files changed, 142 insertions(+), 0 deletions(-)

diffs (174 lines):

diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/DESCR       Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,12 @@
+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 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/Makefile    Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+
+DISTNAME=      pa_snapshot_v19
+PKGNAME=       portaudio-devel-20060521
+CATEGORIES=    audio
+MASTER_SITES=  http://www.portaudio.com/archives/
+WRKSRC=                ${WRKDIR}/portaudio
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.portaudio.com/
+COMMENT=       Portable cross-platform Audio API
+
+NOT_FOR_PLATFORM=      Interix-*-*
+
+DIST_SUBDIR=           ${PKGNAME_NOREV}
+USE_TOOLS+=            gmake pkg-config
+USE_LIBTOOL=           yes
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib/portaudio2
+CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/portaudio2
+CONFIGURE_ARGS+=       --without-alsa
+LDFLAGS+=              ${LIBOSSAUDIO}
+
+post-patch:
+       ${TOUCH} ${WRKSRC}/libtool
+
+pre-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/include/portaudio2
+       ${INSTALL_DATA_DIR} ${PREFIX}/lib/portaudio2
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/PLIST       Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+include/portaudio2/portaudio.h
+lib/portaudio2/libportaudio.la
+lib/pkgconfig/portaudio-2.0.pc
+@dirrm include/portaudio2
+@dirrm lib/portaudio2
diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/buildlink3.mk       Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+PORTAUDIO_DEVEL_BUILDLINK3_MK:=        ${PORTAUDIO_DEVEL_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    portaudio-devel
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nportaudio-devel}
+BUILDLINK_PACKAGES+=   portaudio-devel
+
+.if ${PORTAUDIO_DEVEL_BUILDLINK3_MK} == "+"
+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
+.endif # PORTAUDIO_DEVEL_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/distinfo    Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+
+SHA1 (portaudio-devel-20060521/pa_snapshot_v19.tar.gz) = 05c35c7add9f95c79491fbacb80b057be339ed6f
+RMD160 (portaudio-devel-20060521/pa_snapshot_v19.tar.gz) = dea1e921189bd788815c3012498fc035f3df8bad
+Size (portaudio-devel-20060521/pa_snapshot_v19.tar.gz) = 722148 bytes
+SHA1 (patch-aa) = f46283bc89b788e5e639cf9004b81e31d089ce6d
+SHA1 (patch-ab) = 22ffb8f52d4fde3f74793b81905aa5a1865ce01a
+SHA1 (patch-ac) = 79f6c5e206689c30e1dff4985462d3272ed43a1a
diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/patches/patch-aa    Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+
+--- configure.in.orig  2006-05-19 09:20:07.000000000 -0700
++++ configure.in
+@@ -79,7 +79,8 @@ dnl that then requires pkg-config availa
+ dnl MinGW systems and can be a pain to install.
+ dnl AC_CANONICAL_HOST
+ 
+-PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)
++dnl PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)
++have_jack=no
+ 
+ dnl sizeof checks: we will need a 16-bit and a 32-bit type
+ 
diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/patches/patch-ab    Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+
+--- configure.orig     2006-05-21 12:07:29.000000000 -0700
++++ configure
+@@ -18957,7 +18957,7 @@ fi
+ 
+ 
+ 
+-PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)
++have_jack=no
+ 
+ 
+ echo "$as_me:$LINENO: checking for short" >&5
diff -r 30208c8d9754 -r 9885f287bf15 audio/portaudio-devel/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/portaudio-devel/patches/patch-ac    Sun May 21 22:21:10 2006 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/05/21 22:21:10 ben Exp $
+
+--- src/hostapi/oss/pa_unix_oss.c.orig 2006-05-17 01:02:24.000000000 -0700
++++ src/hostapi/oss/pa_unix_oss.c
+@@ -42,7 +42,9 @@
+ #include <sys/ioctl.h>
+ #include <unistd.h>
+ #include <pthread.h>
++#if !defined(__NetBSD__)
+ #include <alloca.h>
++#endif
+ #include <malloc.h>
+ #include <assert.h>
+ #include <errno.h>
+@@ -58,6 +60,9 @@
+ #elif defined __linux__
+ # include <linux/soundcard.h>
+ # define DEVICE_NAME_BASE            "/dev/dsp"
++#elif defined(__NetBSD__)
++# include <soundcard.h>
++# define DEVICE_NAME_BASE            "/dev/audio"
+ #else
+ # include <machine/soundcard.h> /* JH20010905 */
+ # define DEVICE_NAME_BASE            "/dev/audio"
+@@ -1916,8 +1921,10 @@ static signed long GetStreamWriteAvailab
+     PaOssStream *stream = (PaOssStream*)s;
+     int delay = 0;
+ 
++#if !defined(__NetBSD__)
+     if( ioctl( stream->playback->fd, SNDCTL_DSP_GETODELAY, &delay ) < 0 )
+         return paUnanticipatedHostError;
++#endif
+     
+     return (PaOssStreamComponent_BufferSize( stream->playback ) - delay) / PaOssStreamComponent_FrameSize( stream->playback );
+ }



Home | Main Index | Thread Index | Old Index