summaryrefslogtreecommitdiff
path: root/audio/libao
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libao')
-rw-r--r--audio/libao/Makefile16
-rw-r--r--audio/libao/files/md53
-rw-r--r--audio/libao/files/patch-sum5
-rw-r--r--audio/libao/patches/patch-aa13
-rw-r--r--audio/libao/patches/patch-ab22
-rw-r--r--audio/libao/patches/patch-ac13
-rw-r--r--audio/libao/pkg/DESCR13
-rw-r--r--audio/libao/pkg/PLIST23
8 files changed, 108 insertions, 0 deletions
diff --git a/audio/libao/Makefile b/audio/libao/Makefile
new file mode 100644
index 00000000000..02a6177a524
--- /dev/null
+++ b/audio/libao/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+
+DISTNAME= libao-0.6.0
+CATEGORIES= devel
+MASTER_SITES= http://www.vorbis.com/files/beta4/unix/
+
+MAINTAINER= reed@reedmedia.net
+COMMENT= cross-platform audio library
+
+DEPENDS+= esound>=0.2.8:../../audio/esound
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+LTCONFIG_OVERRIDE= ${WRKSRC}/src/ltconfig
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libao/files/md5 b/audio/libao/files/md5
new file mode 100644
index 00000000000..025e405ddf4
--- /dev/null
+++ b/audio/libao/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+
+SHA1 (libao-0.6.0.tar.gz) = 329003690b2484fa79faa6d9517ff2065e1c513f
diff --git a/audio/libao/files/patch-sum b/audio/libao/files/patch-sum
new file mode 100644
index 00000000000..7d5ef12b91c
--- /dev/null
+++ b/audio/libao/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+
+SHA1 (patch-aa) = 169111a20ebd34ed470e9c54a153f05a60e9495f
+SHA1 (patch-ab) = edd739acc4f5460e8bcc56cb05d11f1e5e442bda
+SHA1 (patch-ac) = c9c77903ff355b7dcef5476d3779234c4bd82e42
diff --git a/audio/libao/patches/patch-aa b/audio/libao/patches/patch-aa
new file mode 100644
index 00000000000..556bc630221
--- /dev/null
+++ b/audio/libao/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+
+--- configure.orig Sun Feb 25 20:58:48 2001
++++ configure Wed Mar 14 22:03:19 2001
+@@ -2086,6 +2086,8 @@
+ HAVE_OSS_TRUE='#'
+ HAVE_OSS_FALSE=
+ fi
++HAVE_OSS_TRUE=
++HAVE_OSS_FALSE='#'
+
+
+ echo $ac_n "checking for snd_pcm_open in -lasound""... $ac_c" 1>&6
diff --git a/audio/libao/patches/patch-ab b/audio/libao/patches/patch-ab
new file mode 100644
index 00000000000..3b0f17946dd
--- /dev/null
+++ b/audio/libao/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+
+--- ../libao-0.6.0.orig/src/plugins/oss/ao_oss.c Fri Feb 23 17:31:48 2001
++++ src/plugins/oss/ao_oss.c Wed Mar 14 22:12:22 2001
+@@ -113,7 +113,7 @@
+ }
+ } else {
+ /* default: first try the devfs path */
+- state->dev = strdup("/dev/sound/dsp");
++ state->dev = strdup("/dev/audio");
+ state->fd=open(state->dev,O_WRONLY);
+ if(state->fd < 0)
+ {
+@@ -198,7 +198,7 @@
+ int plugin_get_latency(ao_internal_t *state)
+ {
+ int odelay = 0;
+- ioctl(((ao_oss_internal_t *)state)->fd, SNDCTL_DSP_GETODELAY, &odelay);
++/* ioctl(((ao_oss_internal_t *)state)->fd, SNDCTL_DSP_GETODELAY, &odelay); */
+ return odelay;
+ }
+
diff --git a/audio/libao/patches/patch-ac b/audio/libao/patches/patch-ac
new file mode 100644
index 00000000000..517e79c2798
--- /dev/null
+++ b/audio/libao/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+
+--- ../libao-0.6.0.orig/src/audio_out.c Fri Feb 23 17:31:46 2001
++++ src/audio_out.c Thu Mar 15 10:21:55 2001
+@@ -63,7 +63,7 @@
+ driver_tree_t *dt;
+ void *handle;
+
+- handle = dlopen(plugin_file, RTLD_NOW);
++ handle = dlopen(plugin_file, DL_LAZY);
+ if (handle) {
+ dt = (driver_tree_t *)malloc(sizeof(driver_tree_t));
+ if (!dt) return NULL;
diff --git a/audio/libao/pkg/DESCR b/audio/libao/pkg/DESCR
new file mode 100644
index 00000000000..4b8fe1cffa5
--- /dev/null
+++ b/audio/libao/pkg/DESCR
@@ -0,0 +1,13 @@
+Libao is a cross-platform audio library that allows programs to
+output audio using a simple API on a wide variety of platforms.
+libao currently supports:
+ * Null output
+ * WAV files
+ * OSS (Open Sound System)
+ * ESD (ESounD or Enlighten Sound Daemon)
+ * ALSA (Advanced Linux Sound Architecture)
+ * Solaris (untested)
+ * IRIX (untested)
+
+This NetBSD package uses /dev/audio (instead of /dev/sound/dsp)
+for the OSS support.
diff --git a/audio/libao/pkg/PLIST b/audio/libao/pkg/PLIST
new file mode 100644
index 00000000000..e125aaf9a27
--- /dev/null
+++ b/audio/libao/pkg/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
+lib/ao/libesd.la
+lib/ao/libesd.so
+lib/ao/libesd.so.0
+lib/ao/libesd.so.0.0
+lib/ao/liboss.la
+lib/ao/liboss.so
+lib/ao/liboss.so.0
+lib/ao/liboss.so.0.0
+lib/libao.la
+lib/libao.so
+lib/libao.so.1
+lib/libao.so.1.0
+include/ao/ao.h
+include/ao/os_types.h
+share/doc/${PKGNAME}/API
+share/doc/${PKGNAME}/USAGE
+share/doc/${PKGNAME}/DRIVERS
+share/doc/${PKGNAME}/WANTED
+share/aclocal/ao.m4
+@dirrm include/ao
+@dirrm lib/ao
+@dirrm share/doc/${PKGNAME}