svn commit: r519148 - head/graphics/tesseract

Piotr Kubaj pkubaj at FreeBSD.org
Fri Dec 6 15:00:55 UTC 2019


Author: pkubaj
Date: Fri Dec  6 15:00:54 2019
New Revision: 519148
URL: https://svnweb.freebsd.org/changeset/ports/519148

Log:
  graphics/tesseract: fix libomp dependency
  
  Use devel/openmp only on 12.0.
  
  PR:		242292
  Submitted by:	jonc at chen.org.nz

Modified:
  head/graphics/tesseract/Makefile

Modified: head/graphics/tesseract/Makefile
==============================================================================
--- head/graphics/tesseract/Makefile	Fri Dec  6 14:42:58 2019	(r519147)
+++ head/graphics/tesseract/Makefile	Fri Dec  6 15:00:54 2019	(r519148)
@@ -44,13 +44,18 @@ OPTIONS_DEFAULT_i386=OPENMP
 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 <bsd.port.pre.mk>
+
+.if ${OSREL:R} >= 12 && ${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-DOCS-on:
 post-install-TOOLS-on:
 	@cd ${WRKSRC} && ${MAKE} DESTDIR=${STAGEDIR} training-install
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list