summaryrefslogtreecommitdiff
path: root/lang/intercal
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-01-02 12:49:43 +0000
committerdrochner <drochner@pkgsrc.org>2010-01-02 12:49:43 +0000
commit4761aa9f4a391e11c9d3f149bc9d4cac3893d4ae (patch)
tree532b8c10be579600c926a430fd0471e1dec62575 /lang/intercal
parent6e7735cdd8ae012ca645054f454d77ee1d1ca3a8 (diff)
downloadpkgsrc-4761aa9f4a391e11c9d3f149bc9d4cac3893d4ae.tar.gz
"flex" apparently changed its behavior wrt "yylineno": If invoked
w/o "-l", yylinelo still gets defined in recent versions, but not in the version which comes with NetBSD-4. So require "flex" for the build and always use the "-l" flag, so we'll hopefully get deterministic behavior. Should fix PR pkg/42509 by Robert Elz.
Diffstat (limited to 'lang/intercal')
-rw-r--r--lang/intercal/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/intercal/Makefile b/lang/intercal/Makefile
index b66fb5581f7..85e2ee11e2f 100644
--- a/lang/intercal/Makefile
+++ b/lang/intercal/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2009/12/18 14:02:07 drochner Exp $
+# $NetBSD: Makefile,v 1.10 2010/01/02 12:49:43 drochner Exp $
#
DISTNAME= intercal-0.24
@@ -10,11 +10,13 @@ HOMEPAGE= http://www.catb.org/~esr/intercal/
COMMENT= The ultimate language for obfuscation and job security
MAKE_JOBS_SAFE= no
-USE_TOOLS+= lex yacc
+USE_TOOLS+= flex yacc
GNU_CONFIGURE= yes
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS+= bin lib
+CONFIGURE_ENV+= LEX="flex -l"
+
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= post-patch
SUBST_FILES.prefix= perpetrate.c