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

Collapse All | Expand All

(-)graphics/gmic-qt/Makefile (-3 / +19 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 22-27 Link Here
22
		libfftw3.so:math/fftw3 \
22
		libfftw3.so:math/fftw3 \
23
		libpng.so:graphics/png
23
		libpng.so:graphics/png
24
24
25
FLAVORS=	none krita gimp # reflect the value of GMIC_QT_HOST for simplicity
26
FLAVOR?=	${FLAVORS:[1]}
27
krita_PKGNAMESUFFIX=	-krita
28
gimp_PKGNAMESUFFIX=	-gimp
29
25
USES=		cmake compiler:c++14-lang pkgconfig qt:5 xorg
30
USES=		cmake compiler:c++14-lang pkgconfig qt:5 xorg
26
USE_QT=		core gui network widgets \
31
USE_QT=		core gui network widgets \
27
		buildtools_build linguisttools_build qmake_build
32
		buildtools_build linguisttools_build qmake_build
Lines 34-44 Link Here
34
39
35
# Use the extracted cimg/gmic & Co, as we do not want to depend on graphics/gimp
40
# 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.
41
# which would get pulled in by graphics/cimg.
37
CMAKE_ARGS=	-DGMIC_QT_HOST:STRING="krita" \
42
CMAKE_ARGS=	-DGMIC_QT_HOST:STRING="${FLAVOR}" \
38
		-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"
43
		-DGMIC_PATH:STRING="${WRKSRC_gmic}/src"
39
44
45
PLIST_FILES=	bin/gmic_${FLAVOR:S/$/_/:S/none_//}qt
46
40
PORTSCOUT=	limit:[0-9]\..*
47
PORTSCOUT=	limit:[0-9]\..*
41
48
49
.if ${FLAVOR} == gimp
50
LIB_DEPENDS+=	libbabl-0.1.so:x11/babl \
51
		libgegl-0.4.so:graphics/gegl \
52
		libgimp-2.0.so:graphics/gimp-app \
53
		libjson-glib-1.0.so:devel/json-glib
54
USES+=		gettext-runtime gnome
55
USE_GNOME=	cairo gdkpixbuf2 glib20
56
.endif
57
42
pre-configure:
58
pre-configure:
43
# Copy the necessary files
59
# Copy the necessary files
44
	${CP} ${WRKSRC_cimg}/CImg.h ${WRKSRC_gmic}/src
60
	${CP} ${WRKSRC_cimg}/CImg.h ${WRKSRC_gmic}/src
Lines 45-51 Link Here
45
	${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC_gmic}/src
61
	${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC_gmic}/src
46
62
47
do-install:
63
do-install:
48
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_krita_qt ${STAGEDIR}${PREFIX}/bin
64
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gmic_${FLAVOR:S/$/_/:S/none_//}qt ${STAGEDIR}${PREFIX}/bin
49
	${MKDIR} ${STAGEDIR}${DATADIR}/translations
65
	${MKDIR} ${STAGEDIR}${DATADIR}/translations
50
	${INSTALL_DATA} ${BUILD_WRKSRC}/*.qm ${STAGEDIR}${DATADIR}/translations
66
	${INSTALL_DATA} ${BUILD_WRKSRC}/*.qm ${STAGEDIR}${DATADIR}/translations
51
67
(-)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

Return to bug 244162