summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2003-11-04 20:46:57 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2003-11-04 20:46:57 +0000
commit7c7285ee7955078577dc487cceaa2be3c7b64591 (patch)
tree7bf2d5fb0d939c136345636f08bb75f050314d30 /cad
parent80e24e9a5fae564e7337add3f614eb547bf63160 (diff)
downloadpkgsrc-7c7285ee7955078577dc487cceaa2be3c7b64591.tar.gz
Force the rebuild of a lex generated .c file. The one in the distfile
doesn't always compile. Fixes build problems on Solaris.
Diffstat (limited to 'cad')
-rw-r--r--cad/geda-utils/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/cad/geda-utils/Makefile b/cad/geda-utils/Makefile
index 979cb2e8aec..4786e4bc7dc 100644
--- a/cad/geda-utils/Makefile
+++ b/cad/geda-utils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2003/09/10 23:43:35 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.19 2003/11/04 20:46:57 dmcmahill Exp $
#
DISTNAME= geda-utils-${PKGVERSION}
@@ -13,6 +13,11 @@ HOMEPAGE= http://www.geda.seul.org/
COMMENT= Set of utilites for gEDA
BUILD_DEPENDS+= geda-symbols>=${PKGVERSION}:../../cad/geda-symbols
+.if !exists(/usr/bin/lex) && !exists(/usr/bin/flex)
+BUILD_DEPENDS+= flex-[0-9]*:../../devel/flex
+EVAL_PREFIX+= LEXDIR=flex
+LEX= ${LEXDIR}/bin/flex
+.endif
CONFLICTS+= gEDA<19991011
@@ -23,6 +28,11 @@ GNU_CONFIGURE= YES
USE_BUILDLINK2= YES
USE_PERL5= YES
+# let (f)lex rebuild this file. The distributed one doesn't
+# always work.
+post-patch:
+ ${RM} -f ${WRKSRC}/src/olib.c
+
EVAL_PREFIX+= PYDIR=python
REPLACE_INTERPRETER+= python