Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2019 07:39:07 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520893 - head/graphics/gmic
Message-ID:  <201912260739.xBQ7d7hl022297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Dec 26 07:39:07 2019
New Revision: 520893
URL: https://svnweb.freebsd.org/changeset/ports/520893

Log:
  graphics/gmic: Fix build by adding the devel/openmp dependency
  
  Reported by:	fallout

Modified:
  head/graphics/gmic/Makefile

Modified: head/graphics/gmic/Makefile
==============================================================================
--- head/graphics/gmic/Makefile	Thu Dec 26 07:28:45 2019	(r520892)
+++ head/graphics/gmic/Makefile	Thu Dec 26 07:39:07 2019	(r520893)
@@ -2,6 +2,7 @@
 
 PORTNAME=	gmic
 DISTVERSION=	2.8.1
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	https://gmic.eu/files/source/
 DISTNAME=	${PORTNAME}_${DISTVERSION}
@@ -16,7 +17,6 @@ LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-se
 
 BROKEN_i386=	error: "c++ crashes, clang-5 and 6 fail: undefined reference to `__atomic_load'"
 
-BUILD_DEPENDS=	${LOCALBASE}/include/CImg.h:graphics/cimg
 LIB_DEPENDS=	libfftw3.so:math/fftw3 \
 		libGraphicsMagick++.so:graphics/GraphicsMagick \
 		libIlmImf.so:graphics/openexr \
@@ -55,4 +55,11 @@ X11_CMAKE_BOOL=		ENABLE_X
 X11_USES=		xorg
 X11_USE=		XORG=ice,sm,x11,xext
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# XXX Drop after FreeBSD 12.0 EOL
+.if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/omp.h)
+LIB_DEPENDS+=	libomp.so:devel/openmp
+.endif
+
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912260739.xBQ7d7hl022297>