From 8d9ba19680037926fdcc2126896d5826bd96844c Mon Sep 17 00:00:00 2001 From: reed Date: Fri, 10 Oct 2003 16:31:08 +0000 Subject: 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). --- devel/oaf/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'devel') 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" -- cgit v1.2.3