summaryrefslogtreecommitdiff
path: root/devel/oaf
diff options
context:
space:
mode:
authorreed <reed>2003-10-10 16:31:08 +0000
committerreed <reed>2003-10-10 16:31:08 +0000
commit48846b357d9052382036fa2831e708d0b776bf26 (patch)
tree652e09a938826005c7c088421de217e8f44a2a05 /devel/oaf
parent6e2033fd60a5ba3dc2babf81e5583ffcdeda876d (diff)
downloadpkgsrc-48846b357d9052382036fa2831e708d0b776bf26.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/oaf')
-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"