summaryrefslogtreecommitdiff
path: root/graphics/photoflow/Makefile
blob: 213cfe0709dc653fc791447cc7fd691b5ae8dcd7 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PORTNAME=	photoflow
DISTVERSION=	0.2.8.20200828
PORTREVISION=	9
CATEGORIES=	graphics

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Non-destructive photo retouching program

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_i386=	see https://github.com/aferrero2707/PhotoFlow/issues/192

LIB_DEPENDS=	libexiv2.so:graphics/exiv2 \
		libfftw3.so:math/fftw3 \
		libfftw3f.so:math/fftw3-float \
		libiptcdata.so:graphics/libiptcdata \
		libOpenEXR.so:graphics/openexr \
		liblcms2.so:graphics/lcms2 \
		liblensfun.so:graphics/lensfun \
		libtiff.so:graphics/tiff \
		libpugixml.so:textproc/pugixml \
		libvips.so:graphics/vips

USES=		cmake compiler desktop-file-utils gettext gnome jpeg pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	aferrero2707
GH_PROJECT=	PhotoFlow
GH_TAGNAME=	8472024f
USE_GNOME=	atkmm cairomm glib20 glibmm gtk20 gtkmm24 libsigc++20 pangomm

CMAKE_OFF=	BUNDLED_LENSFUN
#Disable optimization for the builder CPU when building official packages
.if defined(PACKAGE_BUILDING)
CMAKE_ON=	BINARY_PACKAGE_BUILD
.endif

LDFLAGS+=	-lexecinfo

OPTIONS_DEFINE=		OCIO
OPTIONS_DEFAULT=	OCIO
OPTIONS_SUB=		yes

OCIO_DESC=		Enable the integration of OpenColorIO
OCIO_CMAKE_BOOL=	OCIO_ENABLED
OCIO_LIB_DEPENDS=	libOpenColorIO.so:graphics/opencolorio
OCIO_VARS=		GH_TUPLE+=sobotka:filmic-blender:1.1.1:fb/../.build/data/filmic-blender \
			GH_TUPLE+=imageworks:OpenColorIO-Configs:0bb079c08be410030669cbf5f19ff869b88af953:c/../.build/data/ocio-configs

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == gcc
USE_GCC=	yes
.else
# clang-10 fails to compile photoflow because it bundles an old version of GMIC that clang-10 doesn't like: https://github.com/aferrero2707/PhotoFlow/issues/220
LLVM_VERSION=	90
BUILD_DEPENDS+=	clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
CC=		clang${LLVM_VERSION}
CXX=		clang++${LLVM_VERSION}
CPP=		clang-cpp${LLVM_VERSION}
.endif

.include <bsd.port.post.mk>