summaryrefslogtreecommitdiff
path: root/graphics/gmic-qt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gmic-qt/Makefile')
-rw-r--r--graphics/gmic-qt/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/graphics/gmic-qt/Makefile b/graphics/gmic-qt/Makefile
index 114b25aa2a1d..7666ee5b307b 100644
--- a/graphics/gmic-qt/Makefile
+++ b/graphics/gmic-qt/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gmic-qt
DISTVERSIONPREFIX= v.
-DISTVERSION= 3.5.3
+DISTVERSION= 3.6.1
PORTEPOCH= 1
CATEGORIES= graphics kde
MASTER_SITES= https://github.com/GreycLab/gmic/releases/download/${DISTVERSIONFULL}/ \
@@ -21,9 +21,10 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
libfftw3.so:math/fftw3 \
libpng16.so:graphics/png
-FLAVORS= none gimp # reflect the value of GMIC_QT_HOST for simplicity
+FLAVORS= none gimp gimp3 # reflect the value of GMIC_QT_HOST for simplicity
FLAVOR?= ${FLAVORS:[1]}
gimp_PKGNAMESUFFIX= -gimp
+gimp3_PKGNAMESUFFIX= -gimp3
USES= cmake compiler:c++17-lang gl pkgconfig qt:6 shebangfix xorg
USE_GL= opengl
@@ -43,7 +44,7 @@ PORTSCOUT= limit:[0-9]\..*
WRKSRC= ${WRKDIR}/${DISTNAME:S|_|-|}
WRKSRC_SUBDIR= ${PORTNAME}
-.if ${FLAVOR} == gimp
+.if ${FLAVOR} == "gimp"
LIB_DEPENDS+= libbabl-0.1.so:x11/babl \
libgegl-0.4.so:graphics/gegl \
libgimp-2.0.so:graphics/gimp-app \
@@ -51,10 +52,19 @@ LIB_DEPENDS+= libbabl-0.1.so:x11/babl \
USES+= gettext-runtime gnome
USE_GNOME= cairo gdkpixbuf glib20
PLUGINS_DIR= libexec/gimp/2.2/plug-ins/gmic_gimp_qt
+.elif ${FLAVOR} == "gimp3"
+LIB_DEPENDS+= libbabl-0.1.so:x11/babl \
+ libgegl-0.4.so:graphics/gegl \
+ libgexiv2.so:graphics/gexiv2 \
+ libgimp-3.0.so:graphics/gimp3-app \
+ libjson-glib-1.0.so:devel/json-glib
+USES+= gettext-runtime gnome
+USE_GNOME= cairo gdkpixbuf glib20 pango
+PLUGINS_DIR= lib/gimp/3.0/plug-ins/gmic_gimp_qt
.else
PLUGINS_DIR= bin
.endif
-PLIST_FILES= ${PLUGINS_DIR}/gmic_${FLAVOR:S|$|_|:S|none_||}qt
+PLIST_FILES= ${PLUGINS_DIR}/gmic_${FLAVOR:S|$|_|:S|none_||:C|gimp[3]|gimp|}qt
.include <bsd.port.mk>