diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-03 08:04:28 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-03 08:04:28 +0000 |
commit | 3278f50981aa8e3a820688822abf3f7a3b81d30e (patch) | |
tree | 63046308e3e67ea15fe05a6a38149fa5ed0f93dc | |
parent | a0d0e5ab029908e0010b9ad56c581c60ebc95d54 (diff) | |
download | pkgsrc-3278f50981aa8e3a820688822abf3f7a3b81d30e.tar.gz |
Create "DEVOSSSOUND" which is used where we'd like for programs that use
the ossaudio emulation to use /dev/sound instead of /dev/audio. For OSS,
DEVOSSSOUND == DEVOSSAUDIO == /dev/dsp.
-rw-r--r-- | audio/oss/buildlink2.mk | 3 | ||||
-rw-r--r-- | mk/ossaudio.buildlink2.mk | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/audio/oss/buildlink2.mk b/audio/oss/buildlink2.mk index 9cb7733a6a1..4368e761bc2 100644 --- a/audio/oss/buildlink2.mk +++ b/audio/oss/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.1 2002/10/03 02:51:12 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.2 2002/10/03 08:04:28 jlam Exp $ .if !defined(OSS_BUILDLINK2_MK) OSS_BUILDLINK2_MK= # defined @@ -29,6 +29,7 @@ BUILDLINK_TARGETS+= oss-buildlink LIBOSSAUDIO= # empty DEVOSSAUDIO= /dev/dsp +DEVOSSSOUND= ${DEVOSSAUDIO} oss-buildlink: _BUILDLINK_USE diff --git a/mk/ossaudio.buildlink2.mk b/mk/ossaudio.buildlink2.mk index a73ebeef709..120c6235ba5 100644 --- a/mk/ossaudio.buildlink2.mk +++ b/mk/ossaudio.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: ossaudio.buildlink2.mk,v 1.5 2002/10/03 02:56:32 jlam Exp $ +# $NetBSD: ossaudio.buildlink2.mk,v 1.6 2002/10/03 08:04:28 jlam Exp $ .if !defined(OSSAUDIO_BUILDLINK2_MK) OSSAUDIO_BUILDLINK2_MK= # defined @@ -18,17 +18,25 @@ BUILDLINK_FILES.ossaudio+= lib/libossaudio.* . if ${OPSYS} == "NetBSD" LIBOSSAUDIO?= -lossaudio DEVOSSAUDIO?= /dev/audio +DEVOSSSOUND?= /dev/sound . elif ${OPSYS} == "Linux" LIBOSSAUDIO?= # empty DEVOSSAUDIO?= /dev/dsp +DEVOSSSOUND?= /dev/dsp . else LIBOSSAUDIO?= # empty DEVOSSAUDIO?= /dev/audio +DEVOSSSOUND?= /dev/sound . endif .endif +CONFIGURE_ENV+= LIBOSSAUDIO="${LIBOSSAUDIO}" +CONFIGURE_ENV+= DEVOSSAUDIO="${DEVOSSAUDIO}" +CONFIGURE_ENV+= DEVOSSSOUND="${DEVOSSSOUND}" + MAKE_ENV+= LIBOSSAUDIO="${LIBOSSAUDIO}" MAKE_ENV+= DEVOSSAUDIO="${DEVOSSAUDIO}" +MAKE_ENV+= DEVOSSSOUND="${DEVOSSSOUND}" BUILDLINK_TARGETS+= ossaudio-buildlink BUILDLINK_TARGETS+= ossaudio-buildlink-soundcard-h |