pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cad/geda-utils Force the rebuild of a lex generated .c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f2ce98ef7d24
branches:  trunk
changeset: 463279:f2ce98ef7d24
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Tue Nov 04 20:46:57 2003 +0000

description:
Force the rebuild of a lex generated .c file.  The one in the distfile
doesn't always compile.  Fixes build problems on Solaris.

diffstat:

 cad/geda-utils/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 673fdb2157b1 -r f2ce98ef7d24 cad/geda-utils/Makefile
--- a/cad/geda-utils/Makefile   Tue Nov 04 19:03:53 2003 +0000
+++ b/cad/geda-utils/Makefile   Tue Nov 04 20:46:57 2003 +0000
@@ -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 @@
 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 @@
 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



Home | Main Index | Thread Index | Old Index