1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

graphics/tesseract: fix libomp dependency

Use devel/openmp only on 12.0.

PR:		242292
Submitted by:	jonc@chen.org.nz
This commit is contained in:
Piotr Kubaj 2019-12-06 15:00:54 +00:00
parent b337db0916
commit 536e266abd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519148

View File

@ -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>