Depend on newer flex on FreeBSD 8 and 9.

Reported by:	antoine
This commit is contained in:
Tijl Coosemans 2014-05-18 12:59:36 +00:00
parent 53016ec1a8
commit c12b608ef6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354415

View file

@ -17,4 +17,15 @@ GNU_CONFIGURE= yes
USES= gmake
CONFIGURE_ARGS= --disable-dependency-tracking --disable-html-doc
.include <bsd.port.options.mk>
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>=2.5.35:${PORTSDIR}/textproc/flex
CONFIGURE_ARGS+=LEX=${LOCALBASE}/bin/flex
.endif
post-patch:
@${REINPLACE_CMD} 's/flex $$(AM_LFLAGS)/$$(LEXCOMPILE)/' \
${WRKSRC}/gpasm/Makefile.in
.include <bsd.port.mk>