pkgsrc/mk/x11.builtin.mk
cube 6635d9bb1c Add a workaround for X11_TYPE modular so that x11.bl3.mk is not included.
Ideally, X11_TYPE modular would set up such packages so that
PREFER.<BUILTIN_PKG> is set to "pkgsrc", but it's a more complex change.

Reported by Adam Hoka.
2008-10-06 12:58:11 +00:00

29 lines
853 B
Makefile

# $NetBSD: x11.builtin.mk,v 1.4 2008/10/06 12:58:11 cube Exp $
#
# x11.builtin.mk will include the builtin.mk file from the appropriate
# X11 distribution.
#
# BUILTIN_PKG and USE_BUILTIN.<BUILTIN_PKG> must be defined by the caller
.if ${X11_TYPE} == "modular"
USE_BUILTIN.${BUILTIN_PKG}= no
.endif
# XXX make(1) idiosyncrasy
# 'CHECK_BUILTIN.${BUILTIN_PKG}?= no' will overwrite the value on older
# version of make (in NetBSD's base system, prior to 20080331).
.if !defined(CHECK_BUILTIN.${BUILTIN_PKG})
CHECK_BUILTIN.${BUILTIN_PKG}= no
.endif
.if !empty(CHECK_BUILTIN.${BUILTIN_PKG}:M[Nn][Oo])
. if !empty(USE_BUILTIN.${BUILTIN_PKG}:M[Yy][Ee][Ss])
BUILDLINK_PREFIX.${BUILTIN_PKG}= ${X11BASE}
. include "../../mk/x11.buildlink3.mk"
. include "../../mk/x11.version.mk"
. include "${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk"
. endif
.endif