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
This commit is contained in:
Jan Beich 2015-04-30 23:53:03 +00:00
parent a6dfd1234d
commit 5b01cc043d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385076

View File

@ -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>