summaryrefslogtreecommitdiff
path: root/graphics/gmic-qt/Makefile
blob: c5f69c4c6dea6a720a429ed0d11386c1bf2357c0 (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
# $FreeBSD$

PORTNAME=	gmic-qt
DISTVERSIONPREFIX=	v.
DISTVERSION=	2.3.6
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	graphics kde
MASTER_SITES=	http://gmic.eu/:stdlib \
		LOCAL/tcberner/${PORTNAME}/${PORTVERSION}:stdlib
DISTFILES=	gmic_stdlib.h:stdlib
DIST_SUBDIR=	KDE/${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY=	${DISTNAME}.tar.gz ${DISTFILE_gmic} ${DISTFILE_cimg}

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Versatile Qt front-end to GMIC

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libcurl.so:ftp/curl \
		libfftw3.so:math/fftw3 \
		libpng.so:graphics/png

USES=		cmake compiler:c++14-lang pkgconfig qt:5
USE_QT=		core gui network widgets \
		buildtools_build linguisttools_build qmake_build
USE_XORG=	ice sm x11 xext

USE_GITHUB=	yes
GH_ACCOUNT=	c-koi
GH_TUPLE=	dtschump:gmic:${DISTVERSIONFULL}:gmic/gmic \
		dtschump:CImg:${DISTVERSIONFULL}:cimg

# Use the extracted cimg/gmic & Co, as we do not want to depend on graphics/gimp
# which would get pulled in by graphics/cimg.
CMAKE_ARGS=	-DGMIC_QT_HOST:STRING="krita" \
		-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"

PORTSCOUT=	limit:[0-9]\..*

pre-configure:
# Copy the necessary files
	${CP} ${WRKSRC_cimg}/CImg.h ${WRKSRC_gmic}/src
	${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC_gmic}/src

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_krita_qt ${STAGEDIR}${PREFIX}/bin
	${MKDIR} ${STAGEDIR}${DATADIR}/translations
	${INSTALL_DATA} ${BUILD_WRKSRC}/*.qm ${STAGEDIR}${DATADIR}/translations

.include <bsd.port.mk>