Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2018 09:05:49 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r471352 - head/graphics/gmic
Message-ID:  <201806020905.w5295ngl020473@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Jun  2 09:05:49 2018
New Revision: 471352
URL: https://svnweb.freebsd.org/changeset/ports/471352

Log:
  graphics/gmic: Add options PLUGINS X11
  
  Also simplify EXTRACT_ONLY and move plist to pkg-plist.
  
  Reported by:	mat (EXTRACT_ONLY simplification)

Added:
  head/graphics/gmic/pkg-plist   (contents, props changed)
Modified:
  head/graphics/gmic/Makefile

Modified: head/graphics/gmic/Makefile
==============================================================================
--- head/graphics/gmic/Makefile	Sat Jun  2 08:56:35 2018	(r471351)
+++ head/graphics/gmic/Makefile	Sat Jun  2 09:05:49 2018	(r471352)
@@ -3,11 +3,12 @@
 PORTNAME=	gmic
 DISTVERSIONPREFIX=	v.
 DISTVERSION=	2.2.3
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://gmic.eu/:gmic_stdlib
 DISTFILES=	gmic_stdlib.h:gmic_stdlib
 DIST_SUBDIR=	${PORTNAME}-${DISTVERSIONFULL}
-EXTRACT_ONLY=	dtschump-gmic-${DISTVERSIONFULL}_GH0.tar.gz
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Framework for image processing
@@ -33,17 +34,23 @@ LIB_DEPENDS=	libfftw3.so:math/fftw3 \
 USES=		cmake:outsource compiler:c++11-lang jpeg pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	dtschump
-USE_XORG=	ice sm x11 xext
 USE_LDCONFIG=	yes
 
 CMAKE_OFF=	BUILD_LIB_STATIC
 CMAKE_ON=	ENABLE_DYNAMIC_LINKING
 
-PLIST_FILES=	bin/gmic \
-		include/gmic.h \
-		lib/libgmic.so \
-		lib/libgmic.so.1 \
-		man/man1/gmic.1.gz
+OPTIONS_DEFINE=		PLUGINS X11
+OPTIONS_DEFAULT=	X11
+OPTIONS_SUB=		yes
+
+PLUGINS_CMAKE_BOOL=	BUILD_PLUGIN
+PLUGINS_USE=		GNOME=atk,cairo,gdkpixbuf2,glib20,gtk20,pango
+PLUGINS_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+			libfreetype.so:print/freetype2 \
+			libgimp-2.0.so:graphics/gimp-app
+
+X11_CMAKE_BOOL=		ENABLE_X
+X11_USE=		XORG=ice,sm,x11,xext
 
 post-extract:
 	@${CP} ${DISTDIR}/${DIST_SUBDIR}/gmic_stdlib.h ${WRKSRC}/src/

Added: head/graphics/gmic/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/gmic/pkg-plist	Sat Jun  2 09:05:49 2018	(r471352)
@@ -0,0 +1,7 @@
+bin/gmic
+include/gmic.h
+lib/libgmic.so
+lib/libgmic.so.1
+man/man1/gmic.1.gz
+%%PLUGINS%%libexec/gimp/2.2/plug-ins/gmic_film_cluts.gmz
+%%PLUGINS%%libexec/gimp/2.2/plug-ins/gmic_gimp_gtk



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