diff -ruN /usr/ports/graphics/tesseract/Makefile ./Makefile --- /usr/ports/graphics/tesseract/Makefile 2019-12-05 17:21:51.596884000 +1300 +++ ./Makefile 2019-12-05 17:18:45.600666000 +1300 @@ -44,13 +44,18 @@ OPTIONS_SUB= yes OPENMP_CONFIGURE_ENABLE=openmp -OPENMP_LIB_DEPENDS=libomp.so:devel/openmp TOOLS_DESC= Include training tools TOOLS_LIB_DEPENDS=libicui18n.so:devel/icu \ libfontconfig.so:x11-fonts/fontconfig TOOLS_USE= GNOME=cairo,glib20,pango +.include + +.if ${OSVERSION} < 1201000 +OPENMP_LIB_DEPENDS=libomp.so:devel/openmp +.endif + post-patch: @${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac @@ -64,4 +69,4 @@ post-install-TOOLS-on: @cd ${WRKSRC} && ${MAKE} DESTDIR=${STAGEDIR} training-install -.include +.include