summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2002-10-03 08:58:05 +0000
committerjlam <jlam>2002-10-03 08:58:05 +0000
commitb783bb9de86c2b542d21192e67f37279b1fffb3f (patch)
tree7925002011fd50f4bb835f9c33eebae93a5ad58a /mk
parentfa7d16be3c68cc1ffa2172ec5090cbc00ba61cfc (diff)
downloadpkgsrc-b783bb9de86c2b542d21192e67f37279b1fffb3f.tar.gz
Invent a new publicly readable variable OSS that is YES/NO for whether
audio/oss is installed. Also add an example in the comments at the top of the file that shows how to use the OSS variable.
Diffstat (limited to 'mk')
-rw-r--r--mk/ossaudio.buildlink2.mk18
1 files changed, 15 insertions, 3 deletions
diff --git a/mk/ossaudio.buildlink2.mk b/mk/ossaudio.buildlink2.mk
index 120c6235ba5..b69283e2577 100644
--- a/mk/ossaudio.buildlink2.mk
+++ b/mk/ossaudio.buildlink2.mk
@@ -1,13 +1,25 @@
-# $NetBSD: ossaudio.buildlink2.mk,v 1.6 2002/10/03 08:04:28 jlam Exp $
-
+# $NetBSD: ossaudio.buildlink2.mk,v 1.7 2002/10/03 08:58:05 jlam Exp $
+#
+# This file should be included by Makefiles for packages that use OSS.
+# By checking the value of OSS after including this file, it's possible to
+# check whether audio/oss is installed, or if ossaudio OSS emulation should
+# be used instead:
+#
+# .include "../../mk/ossaudio.buildlink2.mk"
+#
+# .if defined(OSS) && (${OSS} == "YES")
+# CONFIGURE_ENV+= ac_cv_libossaudio__oss_ioctl=no
+# .endif
+#
.if !defined(OSSAUDIO_BUILDLINK2_MK)
OSSAUDIO_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
_OSS_INSTALLED!= if ${PKG_INFO} -qe oss; then echo YES; else echo NO; fi
+OSS= ${_OSS_INSTALLED}
-.if ${_OSS_INSTALLED} == "YES"
+.if ${OSS} == "YES"
. include "../../audio/oss/buildlink2.mk"
.else
BUILDLINK_PREFIX.ossaudio= /usr