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 /mk | |
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.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/ossaudio.buildlink2.mk | 10 |
1 files changed, 9 insertions, 1 deletions
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 |