diff options
author | cube <cube> | 2008-09-26 19:58:13 +0000 |
---|---|---|
committer | cube <cube> | 2008-09-26 19:58:13 +0000 |
commit | b76ccfbb40c2d84ac4c4816bc82e262c93de0312 (patch) | |
tree | 9fe656acb1041d7dc6ba1d4a5ec50ba20cdb4ec4 | |
parent | 673102c93e20ff9f4ff4425a136261d41e650dc4 (diff) | |
download | pkgsrc-b76ccfbb40c2d84ac4c4816bc82e262c93de0312.tar.gz |
Add a check for CHECK_BUILTIN.<BUILTIN_PKG>, set BUILDLINK_PREFIX in
we're using the built-in version and include x11.buildlink3.mk. This is
the way x11.builtin.mk is currently used by all its consumer. This will
factor a bit of code out of the existing builtin.mk files and will make it
a lot easier to use by other builtim.mk files.
-rw-r--r-- | mk/x11.builtin.mk | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/mk/x11.builtin.mk b/mk/x11.builtin.mk index 22ae6398214..5dceeb19c5c 100644 --- a/mk/x11.builtin.mk +++ b/mk/x11.builtin.mk @@ -1,8 +1,19 @@ -# $NetBSD: x11.builtin.mk,v 1.2 2006/10/26 17:08:08 rillig Exp $ +# $NetBSD: x11.builtin.mk,v 1.2.20.1 2008/09/26 19:58:13 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 -.include "../../mk/x11.version.mk" -.include "${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk" +CHECK_BUILTIN.${BUILTIN_PKG}?= no +.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 |