diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2004-04-27 21:05:38 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2004-04-27 21:05:38 +0000 |
commit | 5fdeadb2b498a77b4900cdead0aa4dae6d278e67 (patch) | |
tree | 853b180b1f6a06fc9dd1bf32eaeea0a1e04c9097 /mk | |
parent | c614fd4b35024ad59abd20f6f0b92db59e3d748b (diff) | |
download | pkgsrc-5fdeadb2b498a77b4900cdead0aa4dae6d278e67.tar.gz |
if we need the devel/flex package and USE_BUILDLINK3 is set, then
pull in devel/flex/buildlink3.mk instead of just listing a BUILD_DEPENDS.
This is needed because flex installs a library.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/tools.mk b/mk/tools.mk index a8c72ca63dd..230e570c466 100644 --- a/mk/tools.mk +++ b/mk/tools.mk @@ -1,4 +1,4 @@ -# $NetBSD: tools.mk,v 1.33 2004/04/22 03:36:30 tv Exp $ +# $NetBSD: tools.mk,v 1.34 2004/04/27 21:05:38 dmcmahill Exp $ # # This Makefile creates a ${TOOLS_DIR} directory and populates the bin # subdir with tools that hide the ones outside of ${TOOLS_DIR}. @@ -247,7 +247,11 @@ _TOOLS_OVERRIDE.lex= YES _TOOLS_PROGNAME.lex= ${LEX} .endif .if (${_TOOLS_NEED_GNU.lex} == "YES") && empty(PKGPATH:Mdevel/flex) +.if defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO]) +.include "../../devel/flex/buildlink3.mk" +.else BUILD_DEPENDS+= flex>=2.5:../../devel/flex +.endif _TOOLS_OVERRIDE.lex= YES _TOOLS_PROGNAME.lex= ${LOCALBASE}/bin/flex . if exists(${_TOOLS_PROGNAME.lex}) |