aboutsummaryrefslogtreecommitdiff
path: root/graphics/gmic/Makefile
blob: 9f59f8a9f31efa8785a667a26f996be5a9719b76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PORTNAME=	gmic
DISTVERSION=	3.1.6
PORTREVISION=	9
CATEGORIES=	graphics
MASTER_SITES=	https://gmic.eu/files/source/
DISTNAME=	${PORTNAME}_${DISTVERSION}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Framework for image processing
WWW=		https://gmic.eu/

LICENSE=	CeCILL
LICENSE_NAME=	CeCILL
LICENSE_FILE=	${WRKSRC}/../COPYING
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

BROKEN_i386=	error: "c++ crashes, clang-5 and 6 fail: undefined reference to `__atomic_load'"
.if !exists(/usr/include/omp.h)
BROKEN=		requires OpenMP support that is missing on this architecture
.endif

BUILD_DEPENDS=	gimptool-2.0:graphics/gimp-app
LIB_DEPENDS=	libcurl.so:ftp/curl \
		libfftw3.so:math/fftw3 \
		libGraphicsMagick++.so:graphics/GraphicsMagick \
		libOpenEXR.so:graphics/openexr \
		libImath.so:math/Imath \
		libopencv_core.so:graphics/opencv \
		libpng.so:graphics/png \
		libtiff.so:graphics/tiff

USES=		compiler:c++11-lang gettext-runtime gmake jpeg localbase:ldflags pkgconfig xorg
USE_LDCONFIG=	yes
USE_XORG=	x11 xau xcb xdmcp

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

WRKSRC_SUBDIR=	src # because of makefile issues, see https://github.com/dtschump/gmic/issues/405

MAKE_JOBS_UNSAFE=	yes # see https://github.com/dtschump/gmic/issues/406

ALL_TARGET=	lib cli # cli is bundled here until https://github.com/dtschump/gmic/issues/407 is fixed, afvter which is would be moved to gmic-cli

PORTSCOUT=	limit:[0-9]\..* # not v.220 and similar

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgmic.so.*

.include <bsd.port.mk>