aboutsummaryrefslogtreecommitdiff
path: root/graphics/krita/Makefile
blob: bb44cca8d813b19cd550fb420e3db07a90bc274e (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
PORTNAME=	krita
DISTVERSION=	5.2.2
PORTREVISION=	8
CATEGORIES=	graphics kde
MASTER_SITES=	KDE/stable/${PORTNAME}/${DISTVERSION}
DIST_SUBDIR=	KDE/${PORTNAME}

PATCH_SITES=	https://invent.kde.org/graphics/${PORTNAME}/-/commit/
PATCHFILES+=	d9e258bf9d6a.patch:-p1 # https://invent.kde.org/graphics/krita/-/merge_requests/2040

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Sketching and painting program
WWW=		https://krita.org

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	boost-libs>=1.65:devel/boost-libs \
		immer>=0:devel/immer \
		lager>=0:devel/lager \
		zug>=0:devel/zug
BUILD_DEPENDS+=	${BUILD_DEPENDS_${ARCH}}
BUILD_DEPENDS_aarch64=	xsimd>=8.1:devel/xsimd
BUILD_DEPENDS_amd64=	xsimd>=8.1:devel/xsimd
LIB_DEPENDS=	libImath.so:math/Imath \
		libOpenColorIO.so:graphics/opencolorio \
		libX11.so:x11/libX11 \
		libexiv2.so:graphics/exiv2 \
		libfftw3.so:math/fftw3 \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libfribidi.so:converters/fribidi \
		libgif.so:graphics/giflib \
		libgsl.so:math/gsl \
		libharfbuzz.so:print/harfbuzz \
		libheif.so:graphics/libheif \
		libjson-c.so:devel/json-c \
		libjxl.so:graphics/libjxl \
		liblcms2.so:graphics/lcms2 \
		libmypaint.so:graphics/libmypaint \
		libopenjp2.so:graphics/openjpeg \
		libpng16.so:graphics/png \
		libpoppler.so:graphics/poppler \
		libpoppler-qt5.so:graphics/poppler-qt5 \
		libquazip1-qt5.so:archivers/quazip@qt5 \
		libtiff.so:graphics/tiff \
		libturbojpeg.so:graphics/libjpeg-turbo \
		libunibreak.so:textproc/libunibreak \
		libwebp.so:graphics/webp

USES=		cmake compiler:c++11-lib desktop-file-utils eigen:3 gettext \
		gnome jpeg kde:5 localbase:ldflags mlt:7 pkgconfig python qt:5 \
		sdl shared-mime-info tar:xz xorg
USE_GNOME=	glib20
USE_KDE=	completion config coreaddons crash guiaddons i18n \
		itemmodels itemviews libkdcraw service widgetsaddons \
		windowsystem ecm:build
USE_QT=		concurrent core dbus declarative gui network \
		printsupport sql svg widgets x11extras xml \
		buildtools:build qmake:build testlib:build \
		sql-sqlite3:run
USE_SDL=	sdl2
USE_XORG=	ice sm xcb xext xi

# Make Cmake use the python we installed dependencies for.
CMAKE_ARGS=	-DPython_EXECUTABLE:STRING=${PYTHON_CMD}

PLIST_SUB=	SHLIB_VER=19.0.0 \
		SHLIB_SHVER=19

OPTIONS_DEFINE=		PYTHON OPENEXR
OPTIONS_DEFAULT=	PYTHON OPENEXR
OPTIONS_SUB=		yes

OPENEXR_LIB_DEPENDS=	libOpenEXR.so:graphics/openexr \
			libKSeExpr.so:graphics/kseexpr
OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR

PYTHON_BUILD_DEPENDS=	${PY_SETUPTOOLS}
PYTHON_USES=		pyqt:5
PYTHON_USE=		PYQT=pyqt5,sip,pysip
PYTHON_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_PyQt5

.include <bsd.port.mk>