summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2003-10-10 16:31:08 +0000
committerreed <reed@pkgsrc.org>2003-10-10 16:31:08 +0000
commit8d9ba19680037926fdcc2126896d5826bd96844c (patch)
tree652e09a938826005c7c088421de217e8f44a2a05 /devel
parentae03c1beedb07fd16a6681f67088229128ae42cf (diff)
downloadpkgsrc-8d9ba19680037926fdcc2126896d5826bd96844c.tar.gz
Check for yacc and BUILD_DEPENDS on bison; check for flex (and not
just for SunOS). (Okay'd by rh.) This should probably get rid of SunOS check. Later, these build dependency checks should be improved and done in a separate mk file (like an enhanced tools.mk).
Diffstat (limited to 'devel')
-rw-r--r--devel/oaf/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/devel/oaf/Makefile b/devel/oaf/Makefile
index 1efd472637f..8245b4d01da 100644
--- a/devel/oaf/Makefile
+++ b/devel/oaf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2003/07/21 16:43:33 martti Exp $
+# $NetBSD: Makefile,v 1.29 2003/10/10 16:31:08 reed Exp $
#
DISTNAME= oaf-0.6.10
@@ -23,9 +23,14 @@ CONFIGURE_ARGS+= --enable-gtk-doc=no
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "SunOS"
-BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
+.if ${OPSYS} == SunOS || !exists(/usr/bin/flex)
BUILD_DEPENDS+= flex-[0-9]*:../../devel/flex
+LEX= ${LOCALBASE}/bin/flex
+.endif
+
+.if !exists(/usr/bin/yacc)
+BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
+YACC= ${LOCALBASE}/bin/bison
.endif
.include "../../devel/popt/buildlink2.mk"