From 536e266abd563e71c0c2a220a7d9e59f04e712e5 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 6 Dec 2019 15:00:54 +0000 Subject: [PATCH] graphics/tesseract: fix libomp dependency Use devel/openmp only on 12.0. PR: 242292 Submitted by: jonc@chen.org.nz --- graphics/tesseract/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/graphics/tesseract/Makefile b/graphics/tesseract/Makefile index b79ecbff6b08..8b27baf13077 100644 --- a/graphics/tesseract/Makefile +++ b/graphics/tesseract/Makefile @@ -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 + +.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 +.include