Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2017 09:20:57 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453103 - in head/graphics: . gmic-qt gmic-qt/files
Message-ID:  <201710290920.v9T9KvBA068520@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sun Oct 29 09:20:57 2017
New Revision: 453103
URL: https://svnweb.freebsd.org/changeset/ports/453103

Log:
  New port: graphics/gmic-qt
  
  GMIC filters for future versions of graphics/krita.
  
  Reviewed by:	mat, adridg
  Differential Revision:	https://reviews.freebsd.org/D12549

Added:
  head/graphics/gmic-qt/
  head/graphics/gmic-qt/Makefile   (contents, props changed)
  head/graphics/gmic-qt/distinfo   (contents, props changed)
  head/graphics/gmic-qt/files/
  head/graphics/gmic-qt/files/patch-CMakeLists.txt   (contents, props changed)
  head/graphics/gmic-qt/pkg-descr   (contents, props changed)
  head/graphics/gmic-qt/pkg-plist   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Sun Oct 29 09:10:56 2017	(r453102)
+++ head/graphics/Makefile	Sun Oct 29 09:20:57 2017	(r453103)
@@ -279,6 +279,7 @@
     SUBDIR += glosm
     SUBDIR += glpng
     SUBDIR += gltt
+    SUBDIR += gmic-qt
     SUBDIR += gmt
     SUBDIR += gnash
     SUBDIR += gnofract4d

Added: head/graphics/gmic-qt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmic-qt/Makefile	Sun Oct 29 09:20:57 2017	(r453103)
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+PORTNAME=	gmic-qt
+DISTVERSIONPREFIX=	v.
+DISTVERSION=	204
+CATEGORIES=	graphics kde
+MASTER_SITES=	http://gmic.eu/:stdlib \
+		LOCAL/tcberner/${PORTNAME}/${PORTVERSION}:stdlib
+DISTFILES=	gmic_stdlib.h:stdlib
+DIST_SUBDIR=	KDE/${PORTNAME}
+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:outsource pkgconfig
+USE_QT5=	core gui network widgets \
+		buildtools_build linguisttools_build qmake_build
+USE_XORG=	ice sm x11 xext
+
+# 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"
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	c-koi
+GH_TUPLE=	dtschump:gmic:${DISTVERSIONFULL}:gmic \
+		dtschump:cimg:${DISTVERSIONFULL}:cimg
+
+pre-configure:
+# Copy the necessary files
+	${CP} ${WRKDIR}/CImg-${DISTVERSIONFULL}/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>

Added: head/graphics/gmic-qt/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmic-qt/distinfo	Sun Oct 29 09:20:57 2017	(r453103)
@@ -0,0 +1,9 @@
+TIMESTAMP = 1509037058
+SHA256 (KDE/gmic-qt/gmic_stdlib.h) = 127f10099f86ee97a87571c6f4372cc419171b3cb139396e1189739911fcb865
+SIZE (KDE/gmic-qt/gmic_stdlib.h) = 3041437
+SHA256 (KDE/gmic-qt/c-koi-gmic-qt-v.204_GH0.tar.gz) = cd4170adbe916802e8ced03b6e63dea5ba9bf26a1e29e01cebf07a4001d1a126
+SIZE (KDE/gmic-qt/c-koi-gmic-qt-v.204_GH0.tar.gz) = 313433
+SHA256 (KDE/gmic-qt/dtschump-gmic-v.204_GH0.tar.gz) = 2a99e457b764bc843aa4d67d22842e0af6567934604ba9c3e3cf9dd9bbe381b4
+SIZE (KDE/gmic-qt/dtschump-gmic-v.204_GH0.tar.gz) = 37274742
+SHA256 (KDE/gmic-qt/dtschump-cimg-v.204_GH0.tar.gz) = 1663e1710f50b412bcaeeaf59725723d042b63242eaee8503e5cd13e28976dd3
+SIZE (KDE/gmic-qt/dtschump-cimg-v.204_GH0.tar.gz) = 11028464

Added: head/graphics/gmic-qt/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmic-qt/files/patch-CMakeLists.txt	Sun Oct 29 09:20:57 2017	(r453103)
@@ -0,0 +1,27 @@
+--- CMakeLists.txt.orig	2017-09-18 13:15:50 UTC
++++ CMakeLists.txt
+@@ -139,9 +139,10 @@ if (UNIX AND NOT APPLE)
+     add_definitions(-D_IS_LINUX_)
+     add_definitions(-Dcimg_use_vt100)
+     add_definitions(-D_IS_UNIX_)
++    find_package(X11)
+     set(gmic_qt_LIBRARIES
+         ${gmic_qt_LIBRARIES}
+-        X11 # XXX: Search for X11: Wayland is coming!
++        ${X11_LIBRARIES} # XXX: Search for X11: Wayland is coming!
+     )
+ 
+ endif()
+@@ -162,6 +163,12 @@ if (WIN32)
+         pthread psapi gdi32
+     )
+ endif()
++
++find_package(Threads) 
++set(gmic_qt_LIBRARIES
++    ${gmic_qt_LIBRARIES}
++    Threads::Threads
++)
+ 
+ if (NOT CMAKE_BUILD_TYPE)
+     set(CMAKE_BUILD_TYPE "Release")

Added: head/graphics/gmic-qt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmic-qt/pkg-descr	Sun Oct 29 09:20:57 2017	(r453103)
@@ -0,0 +1,4 @@
+G'MIC-Qt is a versatile front-end to the image processing framework G'MIC.
+It is in fact a plugin for GIMP, as well as a standalone application.
+
+WWW: https://github.com/c-koi/gmic-qt

Added: head/graphics/gmic-qt/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmic-qt/pkg-plist	Sun Oct 29 09:20:57 2017	(r453103)
@@ -0,0 +1,14 @@
+bin/gmic_krita_qt
+%%DATADIR%%/translations/cs.qm
+%%DATADIR%%/translations/de.qm
+%%DATADIR%%/translations/es.qm
+%%DATADIR%%/translations/fr.qm
+%%DATADIR%%/translations/id.qm
+%%DATADIR%%/translations/it.qm
+%%DATADIR%%/translations/ja.qm
+%%DATADIR%%/translations/nl.qm
+%%DATADIR%%/translations/pl.qm
+%%DATADIR%%/translations/pt.qm
+%%DATADIR%%/translations/ru.qm
+%%DATADIR%%/translations/ua.qm
+%%DATADIR%%/translations/zh.qm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710290920.v9T9KvBA068520>