summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2006-05-21 22:21:10 +0000
committerben <ben@pkgsrc.org>2006-05-21 22:21:10 +0000
commit2b1fc0aca7af8c60477dfc4ba5b90dfe77096c56 (patch)
tree05b9715abe51e6ca41679fb1bc23e4381485eecc /audio
parent83d84555d101acfe180040f39c000fc6b58b800b (diff)
downloadpkgsrc-2b1fc0aca7af8c60477dfc4ba5b90dfe77096c56.tar.gz
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 (limited to 'audio')
-rw-r--r--audio/portaudio-devel/DESCR12
-rw-r--r--audio/portaudio-devel/Makefile33
-rw-r--r--audio/portaudio-devel/PLIST6
-rw-r--r--audio/portaudio-devel/buildlink3.mk21
-rw-r--r--audio/portaudio-devel/distinfo8
-rw-r--r--audio/portaudio-devel/patches/patch-aa14
-rw-r--r--audio/portaudio-devel/patches/patch-ab13
-rw-r--r--audio/portaudio-devel/patches/patch-ac35
8 files changed, 142 insertions, 0 deletions
diff --git a/audio/portaudio-devel/DESCR b/audio/portaudio-devel/DESCR
new file mode 100644
index 00000000000..ea9b3c87917
--- /dev/null
+++ b/audio/portaudio-devel/DESCR
@@ -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 --git a/audio/portaudio-devel/Makefile b/audio/portaudio-devel/Makefile
new file mode 100644
index 00000000000..4e1a66f69d7
--- /dev/null
+++ b/audio/portaudio-devel/Makefile
@@ -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
+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 --git a/audio/portaudio-devel/PLIST b/audio/portaudio-devel/PLIST
new file mode 100644
index 00000000000..50faac85e1c
--- /dev/null
+++ b/audio/portaudio-devel/PLIST
@@ -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 --git a/audio/portaudio-devel/buildlink3.mk b/audio/portaudio-devel/buildlink3.mk
new file mode 100644
index 00000000000..ecd3dd02871
--- /dev/null
+++ b/audio/portaudio-devel/buildlink3.mk
@@ -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 --git a/audio/portaudio-devel/distinfo b/audio/portaudio-devel/distinfo
new file mode 100644
index 00000000000..f68bf3917ef
--- /dev/null
+++ b/audio/portaudio-devel/distinfo
@@ -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 --git a/audio/portaudio-devel/patches/patch-aa b/audio/portaudio-devel/patches/patch-aa
new file mode 100644
index 00000000000..a0be9b69b35
--- /dev/null
+++ b/audio/portaudio-devel/patches/patch-aa
@@ -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 --git a/audio/portaudio-devel/patches/patch-ab b/audio/portaudio-devel/patches/patch-ab
new file mode 100644
index 00000000000..e56099ef57a
--- /dev/null
+++ b/audio/portaudio-devel/patches/patch-ab
@@ -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 --git a/audio/portaudio-devel/patches/patch-ac b/audio/portaudio-devel/patches/patch-ac
new file mode 100644
index 00000000000..73dbf9b721a
--- /dev/null
+++ b/audio/portaudio-devel/patches/patch-ac
@@ -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 );
+ }