From 3d5351f8dff0655f0a65e96c63b3897b5d5f80b9 Mon Sep 17 00:00:00 2001 From: jmmv Date: Fri, 20 May 2005 19:20:55 +0000 Subject: - 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. --- audio/libao-oss/DESCR | 4 ++++ audio/libao-oss/Makefile | 26 ++++++++++++++++++++++++++ audio/libao-oss/PLIST | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 audio/libao-oss/DESCR create mode 100644 audio/libao-oss/Makefile create mode 100644 audio/libao-oss/PLIST (limited to 'audio/libao-oss') 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 -- cgit v1.2.3