pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/oaf Check for yacc and BUILD_DEPENDS on bison; c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb59a5bfd83c
branches:  trunk
changeset: 462724:cb59a5bfd83c
user:      reed <reed%pkgsrc.org@localhost>
date:      Fri Oct 10 16:31:08 2003 +0000

description:
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:

 devel/oaf/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f18256ae346f -r cb59a5bfd83c devel/oaf/Makefile
--- a/devel/oaf/Makefile        Fri Oct 10 16:22:03 2003 +0000
+++ b/devel/oaf/Makefile        Fri Oct 10 16:31:08 2003 +0000
@@ -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 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "SunOS"
+.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
-BUILD_DEPENDS+=                flex-[0-9]*:../../devel/flex
+YACC=                  ${LOCALBASE}/bin/bison 
 .endif
 
 .include "../../devel/popt/buildlink2.mk"



Home | Main Index | Thread Index | Old Index