summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-03 08:58:05 +0000
committerjlam <jlam@pkgsrc.org>2002-10-03 08:58:05 +0000
commit67255d948b627e90c72f7ffd0c9a38deb485c066 (patch)
tree7925002011fd50f4bb835f9c33eebae93a5ad58a /mk
parentffd1d76a9aa9d7db2f0e85c2ee5a149c446da144 (diff)
downloadpkgsrc-67255d948b627e90c72f7ffd0c9a38deb485c066.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