summaryrefslogtreecommitdiff
path: root/devel/flex
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-08-23 22:55:34 +0000
committerwiz <wiz@pkgsrc.org>2003-08-23 22:55:34 +0000
commit52049ab0e1273c5e5789c20e83f01b5c267e1266 (patch)
treedfd4ea577cf8d3d025de4f8266338ac22bf2533c /devel/flex
parent29c36270da8e8f1f4d6a4674b41a6a7dfd00b788 (diff)
downloadpkgsrc-52049ab0e1273c5e5789c20e83f01b5c267e1266.tar.gz
Add dependency on bison if there is no yacc; addresses PR 20772.
Add HOMEPAGE and remove ONLY_FOR_PLATFORMS (from the same PR).
Diffstat (limited to 'devel/flex')
-rw-r--r--devel/flex/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/devel/flex/Makefile b/devel/flex/Makefile
index 1e47f84dc53..d95b017a8c2 100644
--- a/devel/flex/Makefile
+++ b/devel/flex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2003/07/21 16:43:21 martti Exp $
+# $NetBSD: Makefile,v 1.11 2003/08/23 22:55:34 wiz Exp $
DISTNAME= flex-2.5.4a
WRKSRC= ${WRKDIR}/flex-2.5.4
@@ -6,11 +6,14 @@ CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=non-gnu/flex/}
MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.gnu.org/software/flex/
COMMENT= Fast clone of lex(1), the lexical scanner generator
-ONLY_FOR_PLATFORM= SunOS-*-* # in NetBSD base system
-ONLY_FOR_PLATFORM+= Linux-*-*
-
GNU_CONFIGURE= YES
+.if !exists(/usr/bin/yacc)
+BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
+YACC= ${PREFIX}/bin/bison -y
+.endif
+
.include "../../mk/bsd.pkg.mk"