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.
This commit is contained in:
parent
ffd1d76a9a
commit
67255d948b
1 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue