From b783bb9de86c2b542d21192e67f37279b1fffb3f Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 3 Oct 2002 08:58:05 +0000 Subject: 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. --- mk/ossaudio.buildlink2.mk | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'mk') 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 -- cgit v1.2.3