summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2004-04-27 21:05:38 +0000
committerdmcmahill <dmcmahill>2004-04-27 21:05:38 +0000
commitc242fffaf73f94ff67ffae0bcfb1989da277b64c (patch)
tree853b180b1f6a06fc9dd1bf32eaeea0a1e04c9097 /mk
parent029023d18fdac5a83ab88590c6f948fe5bcca33e (diff)
downloadpkgsrc-c242fffaf73f94ff67ffae0bcfb1989da277b64c.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.mk6
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})