summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-04-11 10:31:14 +0000
committernia <nia@pkgsrc.org>2020-04-11 10:31:14 +0000
commitc67d7435cb46e0a3fb8e7018de79d6b55bc2a338 (patch)
tree91cfad8257e7ebb17b85e1603bb74e2d168b078b /mk
parent4bc87e271c209f8cbf8714b11ff9a6181bfb5374 (diff)
downloadpkgsrc-c67d7435cb46e0a3fb8e7018de79d6b55bc2a338.tar.gz
mk/oss.buildlink3.mk: Simplify per-OS DEV* conditionals. Add MIDI.
Diffstat (limited to 'mk')
-rw-r--r--mk/oss.buildlink3.mk21
1 files changed, 7 insertions, 14 deletions
diff --git a/mk/oss.buildlink3.mk b/mk/oss.buildlink3.mk
index 4014e3ab623..7e36a891cad 100644
--- a/mk/oss.buildlink3.mk
+++ b/mk/oss.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: oss.buildlink3.mk,v 1.13 2019/06/30 21:28:28 rillig Exp $
+# $NetBSD: oss.buildlink3.mk,v 1.14 2020/04/11 10:31:14 nia Exp $
#
# This Makefile fragment is included by packages that require an Open Sound
# System (OSS) implementation. After inclusion of this file, the following
@@ -33,21 +33,14 @@ BUILDLINK_BUILTIN_MK.oss= ../../mk/oss.builtin.mk
.if !empty(OSS_BUILDLINK3_MK:M+)
LIBOSSAUDIO?= ${BUILDLINK_LDADD.oss}
-. if (${OPSYS} == "Linux") && exists(/dev/dsp)
-DEVOSSAUDIO?= /dev/dsp
-DEVOSSSOUND?= /dev/dsp
-. elif ${OPSYS} == "DragonFly"
-DEVOSSAUDIO?= /dev/dsp
-DEVOSSSOUND?= /dev/dsp
-. elif ${OPSYS} == "FreeBSD"
-DEVOSSAUDIO?= /dev/dsp
-DEVOSSSOUND?= /dev/dsp
-. elif !empty(MACHINE_PLATFORM:MSunOS-5.11-*) && exists(/dev/dsp)
-DEVOSSAUDIO?= /dev/dsp
-DEVOSSSOUND?= /dev/dsp
-. else
+. if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
DEVOSSAUDIO?= /dev/audio
DEVOSSSOUND?= /dev/sound
+DEVOSSMIDI?= /dev/rmidi0
+. else
+DEVOSSAUDIO?= /dev/dsp
+DEVOSSSOUND?= /dev/dsp
+DEVOSSMIDI?= /dev/midi
. endif
CONFIGURE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q}