summaryrefslogtreecommitdiff
path: root/audio/libao-oss
diff options
context:
space:
mode:
authorjmmv <jmmv>2005-05-20 19:20:55 +0000
committerjmmv <jmmv>2005-05-20 19:20:55 +0000
commitf8c8fd2d62667beb8b5a58c908195925f64157e3 (patch)
tree87572bce79bb98cb7ba53788eacbc021da3a3707 /audio/libao-oss
parent326f6a96b3293f1bb9bed1ba20544f83a9236685 (diff)
downloadpkgsrc-f8c8fd2d62667beb8b5a58c908195925f64157e3.tar.gz
- Change libao to not build OSS, Sun, MacOS X nor several other plugins even
when the header files are found. Bump its revision to 1 due to this. This makes the libao package completely audio-output agnostic. - Add a libao-macosx package containing the MacOS X plugin (sorry, untested). - Add a libao-oss package containing the OSS plugin. While here, use ossaudio.buildlink3.mk to determine the audio device instead of hardcoding it in a patch. - Add a libao-macosx package containing the Sun audio plugin (sorry, untested). Change approved by silence on tech-pkg@ for quite a long time since my proposal. I'm doing these changes to cleanup the base libao package. Before these, it contained a huge conditional to determine when the OSS and/or Sun plugins were built, which often failed in untested platforms (PLIST inconsistencies, for example). Having these plugins in independent packages makes debugging easier, keeps the dependency tree clean and also lets us use {ONLY,NOT}_FOR_PLATFORM directives to easily say where they work or don't.
Diffstat (limited to 'audio/libao-oss')
-rw-r--r--audio/libao-oss/DESCR4
-rw-r--r--audio/libao-oss/Makefile26
-rw-r--r--audio/libao-oss/PLIST3
3 files changed, 33 insertions, 0 deletions
diff --git a/audio/libao-oss/DESCR b/audio/libao-oss/DESCR
new file mode 100644
index 00000000000..565a511bde2
--- /dev/null
+++ b/audio/libao-oss/DESCR
@@ -0,0 +1,4 @@
+Libao is a cross-platform audio library that allows programs to
+output audio using a simple API on a wide variety of platforms.
+
+This package provides an OSS plugin for libao's core.
diff --git a/audio/libao-oss/Makefile b/audio/libao-oss/Makefile
new file mode 100644
index 00000000000..67a3766ff89
--- /dev/null
+++ b/audio/libao-oss/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2005/05/20 19:20:56 jmmv Exp $
+
+.include "../libao/Makefile.common"
+
+PKGNAME= ${DISTNAME:S/libao/libao-oss/}
+
+COMMENT+= (OSS plugin)
+
+NOT_FOR_PLATFORM+= Darwin-*-* Interix-*-* SunOS-*-*
+
+CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/ENABLE_OSS=no/ENABLE_OSS=yes/g}
+BUILD_DIRS= ${WRKSRC}/src/plugins/oss
+INSTALL_DIRS= ${WRKSRC}/src/plugins/oss
+
+SUBST_CLASSES+= oss
+SUBST_MESSAGE.oss= "Fixing paths to OSS devices."
+SUBST_STAGE.oss= pre-configure
+SUBST_FILES.oss= src/plugins/oss/ao_oss.c
+SUBST_SED.oss= -e 's|/dev/dsp|${DEVOSSAUDIO}|g'
+SUBST_SED.oss+= -e 's|/dev/sound/dsp|${DEVOSSAUDIO}|g'
+
+BUILDLINK_DEPENDS.libao+= libao>=0.8.6nb1
+
+.include "../../audio/libao/buildlink3.mk"
+.include "../../mk/ossaudio.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libao-oss/PLIST b/audio/libao-oss/PLIST
new file mode 100644
index 00000000000..7025c423c0c
--- /dev/null
+++ b/audio/libao-oss/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2005/05/20 19:20:56 jmmv Exp $
+lib/ao/plugins-2/liboss.la
+@comment in libao: @dirrm lib/ao/plugins-2