diff options
author | jlam <jlam@pkgsrc.org> | 2004-03-31 07:12:31 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-03-31 07:12:31 +0000 |
commit | ce7bf9c372616a87198fe1ae37ef591a473ffdd8 (patch) | |
tree | 494ef01f7a1a49de763ef0ab4a8e2a6a49f9fcea /mk/buildlink3 | |
parent | 7fe0be307395b5979e682ba29812257220fa9201 (diff) | |
download | pkgsrc-ce7bf9c372616a87198fe1ae37ef591a473ffdd8.tar.gz |
Move the check for USE_X11 after bsd.builtin.mk included since that file
may indirectly set USE_X11. This should fix using some of the builtin
X11 software to build non-X11 packages.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 548823430a5..7ac811e2b7e 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.135 2004/03/30 20:29:54 jlam Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.136 2004/03/31 07:12:31 jlam Exp $ # # An example package buildlink3.mk file: # @@ -69,20 +69,6 @@ PREPEND_PATH+= ${BUILDLINK_DIR}/bin # BUILDLINK_DEPENDS?= # empty -.if defined(USE_X11) -X11_TYPE?= native -. if ${X11_TYPE} == "native" -. include "../../pkgtools/x11-links/buildlink3.mk" -. elif ${X11_TYPE} == "XFree86" -. include "../../x11/XFree86-libs/buildlink3.mk" -#. elif ${X11_TYPE} == "xlibs" -#. include "../../x11/xlibs/buildlink3.mk" -. else -PKG_FAIL_REASON+= \ - "${PKGNAME} uses X11, but \"${X11_TYPE}\" isn't a valid X11 type." -. endif -.endif - # For each package we use, check whether we are using the built-in # version of the package or if we are using the pkgsrc version. # @@ -191,6 +177,25 @@ CHECK_BUILTIN.${_pkg_}= no .endfor .include "../../mk/buildlink3/bsd.builtin.mk" +# Check whether we should include the X11 buildlink3.mk file here since +# USE_X11 may have been set indirectly by bsd.builtin.mk. +# +.if defined(USE_X11) +X11_TYPE?= native +X11_PKGSRCDIR.native= ../../pkgtools/x11-links +X11_PKGSRCDIR.XFree86= ../../x11/XFree86-libs +X11_PKGSRCDIR.xlibs= ../../x11/xlibs +. if exists(${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk) +. include "${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk" +. if exists(${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk) +. include "${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk" +. endif +. else +PKG_FAIL_REASON+= \ + "${PKGNAME} uses X11, but \"${X11_TYPE}\" isn't a valid X11 type." +. endif +.endif + # Set IGNORE_PKG.<pkg> if <pkg> is the current package we're building. # We can then check for this value to avoid build loops. # |