c16221a4db
and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# $NetBSD: oss.buildlink3.mk,v 1.6 2006/07/08 23:11:17 jlam Exp $
|
|
#
|
|
# This Makefile fragment is included by packages that require an Open Sound
|
|
# System (OSS) implementation. After inclusion of this file, the following
|
|
# variables may be examined:
|
|
#
|
|
# OSS_TYPE
|
|
# The type of OSS implementation that has been found. "native"
|
|
# means the native OSS implementation is used. "none" means that
|
|
# no suitable OSS implementation could be found.
|
|
#
|
|
OSS_BUILDLINK3_MK:= ${OSS_BUILDLINK3_MK}+
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !defined(_OSS_TYPE)
|
|
_OSS_TYPE= none
|
|
CHECK_BUILTIN.oss:= yes
|
|
. include "../../mk/oss.builtin.mk"
|
|
CHECK_BUILTIN.oss:= no
|
|
. if defined(IS_BUILTIN.oss) && !empty(IS_BUILTIN.oss:M[yY][eE][sS])
|
|
_OSS_TYPE= native
|
|
. endif
|
|
.endif
|
|
MAKEVARS+= _OSS_TYPE
|
|
|
|
OSS_TYPE= ${_OSS_TYPE}
|
|
|
|
.if ${OSS_TYPE} != "none"
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Noss}
|
|
BUILDLINK_PACKAGES+= oss
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}oss
|
|
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
|
|
. else
|
|
DEVOSSAUDIO?= /dev/audio
|
|
DEVOSSSOUND?= /dev/sound
|
|
. endif
|
|
|
|
CONFIGURE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q}
|
|
CONFIGURE_ENV+= DEVOSSAUDIO=${DEVOSSAUDIO:Q}
|
|
CONFIGURE_ENV+= DEVOSSSOUND=${DEVOSSSOUND:Q}
|
|
|
|
MAKE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q}
|
|
MAKE_ENV+= DEVOSSAUDIO=${DEVOSSAUDIO:Q}
|
|
MAKE_ENV+= DEVOSSSOUND=${DEVOSSSOUND:Q}
|
|
.endif # OSS_BUILDLINK3_MK
|
|
|
|
.endif # OSS_TYPE != none
|