aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-05-01 07:53:03 +0800
committerjbeich <jbeich@FreeBSD.org>2015-05-01 07:53:03 +0800
commitd60839f52080c2db536bffb84faabff7f0bffdec (patch)
treeba2795e2df961c270ca3cd6b6821a1ffe9e66612 /math
parent07d17585e06600904aef714c513fcadced326668 (diff)
downloadfreebsd-ports-gnome-d60839f52080c2db536bffb84faabff7f0bffdec.tar.gz
freebsd-ports-gnome-d60839f52080c2db536bffb84faabff7f0bffdec.tar.zst
freebsd-ports-gnome-d60839f52080c2db536bffb84faabff7f0bffdec.zip
math/hfst: unbreak build on 8.x/9.x (flex 2.5.4)
/bin/sh ../../../build-aux/ylwrap xre_lex.ll lex.yy.c xre_lex.cc -- flex --outfile=lex.yy.c flex: unknown flag '-'. For usage, try flex --help *** [xre_lex.cc] Error code 1 Reported by: pkg-fallout Approved by: portmgr blanket MFH: 2015Q2
Diffstat (limited to 'math')
-rw-r--r--math/hfst/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/math/hfst/Makefile b/math/hfst/Makefile
index f36703a019f9..6a1614e999ca 100644
--- a/math/hfst/Makefile
+++ b/math/hfst/Makefile
@@ -19,4 +19,12 @@ CONFIGURE_ARGS= --with-readline --with-unicode-handler=glib --enable-proc --enab
SHEBANG_FILES= tools/src/hfst-tagger/src/hfst_tagger_compute_data_statistics.py
USE_LDCONFIG= yes
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
+BUILD_DEPENDS+= flex>2.5.33:${PORTSDIR}/textproc/flex
+CONFIGURE_ENV+= LEX="${FLEX}"
+FLEX= ${LOCALBASE}/bin/flex
+.endif
+
.include <bsd.port.mk>