summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cad/iverilog/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/cad/iverilog/Makefile b/cad/iverilog/Makefile
index 281ffe8288f0..f317b93561a7 100644
--- a/cad/iverilog/Makefile
+++ b/cad/iverilog/Makefile
@@ -15,6 +15,13 @@ LICENSE= GPLv2
GNU_CONFIGURE= yes
USES= bison gmake
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} < 1000033
+BUILD_DEPENDS+= flex>=0:${PORTSDIR}/textproc/flex
+CONFIGURE_ENV+= ac_cv_prog_LEX="${LOCALBASE}/bin/flex"
+.endif
+
CONFIGURE_ARGS= --disable-suffix
.include <bsd.port.mk>