From b025a42c5395546ba3813fdc87d2d05e13f971ca Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 26 Sep 2002 12:31:08 +0000 Subject: Create DEVOSSAUDIO, for the default OSS audio device. --- mk/ossaudio.buildlink2.mk | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'mk') diff --git a/mk/ossaudio.buildlink2.mk b/mk/ossaudio.buildlink2.mk index af3b1991b48..b7b56198648 100644 --- a/mk/ossaudio.buildlink2.mk +++ b/mk/ossaudio.buildlink2.mk @@ -1,19 +1,30 @@ -# $NetBSD: ossaudio.buildlink2.mk,v 1.2 2002/08/22 08:21:27 jlam Exp $ +# $NetBSD: ossaudio.buildlink2.mk,v 1.3 2002/09/26 12:31:08 jlam Exp $ .if !defined(OSSAUDIO_BUILDLINK2_MK) OSSAUDIO_BUILDLINK2_MK= # defined .include "../../mk/bsd.prefs.mk" -.if ${_OPSYS_HAS_OSSAUDIO} == "yes" BUILDLINK_PREFIX.ossaudio= /usr -BUILDLINK_FILES.ossaudio= lib/libossaudio.* +BUILDLINK_FILES.ossaudio= include/sys/soundcard.h +BUILDLINK_FILES.ossaudio+= lib/libossaudio.* BUILDLINK_TARGETS+= ossaudio-buildlink BUILDLINK_TARGETS+= ossaudio-buildlink-soundcard-h +.if ${OPSYS} == "NetBSD" LIBOSSAUDIO?= -lossaudio +DEVOSSAUDIO?= /dev/audio +.elif ${OPSYS} == "Linux" +LIBOSSAUDIO?= # empty +DEVOSSAUDIO?= /dev/dsp +.else +LIBOSSAUDIO?= # empty +DEVOSSAUDIO?= /dev/audio +.endif + MAKE_ENV+= LIBOSSAUDIO="${LIBOSSAUDIO}" +MAKE_ENV+= DEVOSSAUDIO="${DEVOSSAUDIO}" ossaudio-buildlink: _BUILDLINK_USE @@ -35,6 +46,5 @@ ossaudio-buildlink-soundcard-h: ${ECHO} "#endif"; \ ) > $${sys_soundcard_h}; \ fi -.endif .endif # OSSAUDIO_BUILDLINK2_MK -- cgit v1.2.3