diff options
author | jlam <jlam> | 2002-09-26 12:31:08 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-26 12:31:08 +0000 |
commit | b025a42c5395546ba3813fdc87d2d05e13f971ca (patch) | |
tree | ec34713d8373a3c1a8e07d7fa3ff28e0a8dd544f /mk | |
parent | 7ccde1e323b25d957d842d529bbab9024bb5a2ca (diff) | |
download | pkgsrc-b025a42c5395546ba3813fdc87d2d05e13f971ca.tar.gz |
Create DEVOSSAUDIO, for the default OSS audio device.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/ossaudio.buildlink2.mk | 18 |
1 files changed, 14 insertions, 4 deletions
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 |