Prefer devel/byacc in ports over devel/bison for FreeBSD 9

byacc has less dependencies and is the same yacc as what FreeBSD 10+ has
This commit is contained in:
Baptiste Daroussin
2016-07-31 17:47:36 +00:00
parent 96e241f3bc
commit 1079688d79

View File

@@ -21,11 +21,9 @@ GNUPLOT_BUILD_DEPENDS= ${LOCALBASE}/bin/gnuplot:math/gnuplot
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000013
USES+= bison
MAKE_ARGS+= YACC=${LOCALBASE}/bin/bison
.endif
BUILD_DEPENDS+= byacc>0:devel/byacc
MAKE_ARGS+= YACC=${LOCALBASE}/bin/yacc
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>0:textproc/flex
MAKE_ARGS+= LEX=${LOCALBASE}/bin/flex
.endif