pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk if we need the devel/flex package and USE_BUILDLINK...
details: https://anonhg.NetBSD.org/pkgsrc/rev/36af19ab5a18
branches: trunk
changeset: 474349:36af19ab5a18
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Tue Apr 27 21:05:38 2004 +0000
description:
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:
mk/tools.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 5f5ce24b4420 -r 36af19ab5a18 mk/tools.mk
--- a/mk/tools.mk Tue Apr 27 21:02:42 2004 +0000
+++ b/mk/tools.mk Tue Apr 27 21:05:38 2004 +0000
@@ -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_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})
Home |
Main Index |
Thread Index |
Old Index