View | Details | Raw Unified | Return to bug 244162 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/gmic-qt/Makefile (-3 / +21 lines)
Lines 3-9 Link Here
3
PORTNAME=	gmic-qt
3
PORTNAME=	gmic-qt
4
DISTVERSIONPREFIX=	v.
4
DISTVERSIONPREFIX=	v.
5
DISTVERSION=	2.3.6
5
DISTVERSION=	2.3.6
6
PORTREVISION=	3
6
PORTREVISION=	4
7
PORTEPOCH=	1
7
PORTEPOCH=	1
8
CATEGORIES=	graphics kde
8
CATEGORIES=	graphics kde
9
MASTER_SITES=	http://gmic.eu/:stdlib \
9
MASTER_SITES=	http://gmic.eu/:stdlib \
Lines 18-27 Link Here
18
LICENSE=	GPLv3+
18
LICENSE=	GPLv3+
19
LICENSE_FILE=	${WRKSRC}/COPYING
19
LICENSE_FILE=	${WRKSRC}/COPYING
20
20
21
CONFLICTS_INSTALL=	${FLAVORS:S/^/${PORTNAME}-/:S/-none//:S/^${PKGBASE}$//}
22
21
LIB_DEPENDS=	libcurl.so:ftp/curl \
23
LIB_DEPENDS=	libcurl.so:ftp/curl \
22
		libfftw3.so:math/fftw3 \
24
		libfftw3.so:math/fftw3 \
23
		libpng.so:graphics/png
25
		libpng.so:graphics/png
24
26
27
FLAVORS=	none krita gimp # reflect the value of GMIC_QT_HOST for simplicity
28
FLAVOR?=	${FLAVORS:[1]}
29
krita_PKGNAMESUFFIX=	-krita
30
gimp_PKGNAMESUFFIX=	-gimp
31
25
USES=		cmake compiler:c++14-lang pkgconfig qt:5 xorg
32
USES=		cmake compiler:c++14-lang pkgconfig qt:5 xorg
26
USE_QT=		core gui network widgets \
33
USE_QT=		core gui network widgets \
27
		buildtools_build linguisttools_build qmake_build
34
		buildtools_build linguisttools_build qmake_build
Lines 34-44 Link Here
34
41
35
# Use the extracted cimg/gmic & Co, as we do not want to depend on graphics/gimp
42
# Use the extracted cimg/gmic & Co, as we do not want to depend on graphics/gimp
36
# which would get pulled in by graphics/cimg.
43
# which would get pulled in by graphics/cimg.
37
CMAKE_ARGS=	-DGMIC_QT_HOST:STRING="krita" \
44
CMAKE_ARGS=	-DGMIC_QT_HOST:STRING="${FLAVOR}" \
38
		-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"
45
		-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"
39
46
47
PLIST_FILES=	bin/gmic_${FLAVOR:S/$/_/:S/none_//}qt
48
40
PORTSCOUT=	limit:[0-9]\..*
49
PORTSCOUT=	limit:[0-9]\..*
41
50
51
.if ${FLAVOR} == gimp
52
LIB_DEPENDS+=	libbabl-0.1.so:x11/babl \
53
		libgegl-0.4.so:graphics/gegl \
54
		libgimp-2.0.so:graphics/gimp-app \
55
		libjson-glib-1.0.so:devel/json-glib
56
USES+=		gettext-runtime gnome
57
USE_GNOME=	cairo gdkpixbuf2 glib20
58
.endif
59
42
pre-configure:
60
pre-configure:
43
# Copy the necessary files
61
# Copy the necessary files
44
	${CP} ${WRKSRC_cimg}/CImg.h ${WRKSRC_gmic}/src
62
	${CP} ${WRKSRC_cimg}/CImg.h ${WRKSRC_gmic}/src
Lines 45-51 Link Here
45
	${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC_gmic}/src
63
	${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC_gmic}/src
46
64
47
do-install:
65
do-install:
48
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_krita_qt ${STAGEDIR}${PREFIX}/bin
66
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_${FLAVOR:S/$/_/:S/none_//}qt ${STAGEDIR}${PREFIX}/bin
49
	${MKDIR} ${STAGEDIR}${DATADIR}/translations
67
	${MKDIR} ${STAGEDIR}${DATADIR}/translations
50
	${INSTALL_DATA} ${BUILD_WRKSRC}/*.qm ${STAGEDIR}${DATADIR}/translations
68
	${INSTALL_DATA} ${BUILD_WRKSRC}/*.qm ${STAGEDIR}${DATADIR}/translations
51
69
(-)graphics/gmic-qt/pkg-plist (-1 lines)
Lines 1-4 Link Here
1
bin/gmic_krita_qt
2
%%DATADIR%%/translations/cs.qm
1
%%DATADIR%%/translations/cs.qm
3
%%DATADIR%%/translations/de.qm
2
%%DATADIR%%/translations/de.qm
4
%%DATADIR%%/translations/es.qm
3
%%DATADIR%%/translations/es.qm
(-)UPDATING (+10 lines)
Lines 6-11 Link Here
6
you update your ports collection, before attempting any port upgrades.
6
you update your ports collection, before attempting any port upgrades.
7
7
8
20200229:
8
20200229:
9
  AFFECTS: users of graphics/gmic-qt
10
  AUTHOR: kde@FreeBSD.org
11
12
  graphics/gmic-qt has been split into 3 flavors. The previous behavior
13
  (Krita plugin) is now available as a port flavor graphics/gmic-qt@krita
14
  and as a package gmic-qt-krita. Additionally, the 'gimp' flavor is now
15
  available that provides a Gimp plugin, and 'none' flavor is availbale
16
  that provides a standalone application.
17
18
20200229:
9
  AFFECTS: users of textproc/apache-solr
19
  AFFECTS: users of textproc/apache-solr
10
  AUTHOR: mfechner@FreeBSD.org
20
  AUTHOR: mfechner@FreeBSD.org
11
21
(-)graphics/krita/Makefile (-1 / +1 lines)
Lines 50-56 Link Here
50
OPTIONS_SUB=		yes
50
OPTIONS_SUB=		yes
51
51
52
GMIC_DESC=		Depend on the G'Mic plugin #'
52
GMIC_DESC=		Depend on the G'Mic plugin #'
53
GMIC_RUN_DEPENDS=	gmic_krita_qt:graphics/gmic-qt
53
GMIC_RUN_DEPENDS=	gmic_krita_qt:graphics/gmic-qt@krita
54
54
55
OPENEXR_LIB_DEPENDS=	libIlmImf.so:graphics/openexr
55
OPENEXR_LIB_DEPENDS=	libIlmImf.so:graphics/openexr
56
OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR
56
OPENEXR_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenEXR

Return to bug 244162