summaryrefslogtreecommitdiff
path: root/lang/intercal/Makefile
diff options
context:
space:
mode:
authordrochner <drochner>2010-01-02 12:49:43 +0000
committerdrochner <drochner>2010-01-02 12:49:43 +0000
commit761d39b958f4a65054efca43337ac1823bb87f18 (patch)
tree532b8c10be579600c926a430fd0471e1dec62575 /lang/intercal/Makefile
parent8162b84a0b34ea0ab661e98f16caa9ba9b67c798 (diff)
downloadpkgsrc-761d39b958f4a65054efca43337ac1823bb87f18.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/Makefile')
-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