Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 16:43:36 +0000 (UTC)
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r495361 - head/www/igal2
Message-ID:  <201903111643.x2BGhaUP077254@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigo
Date: Mon Mar 11 16:43:36 2019
New Revision: 495361
URL: https://svnweb.freebsd.org/changeset/ports/495361

Log:
  Take maintenership for this port
  
  Add radio options IMAGICK_X11 and IMAGICK_NOX11
  to be able to install www/igal2 with or without
  the X11 dependencies pulled by imagemagik.
  IMAGICK_NOX11 is the default build option.
  
  PR:		236392
  Submitted by:	 Krzysztof <ports@bsdserwis.com>

Modified:
  head/www/igal2/Makefile

Modified: head/www/igal2/Makefile
==============================================================================
--- head/www/igal2/Makefile	Mon Mar 11 16:26:23 2019	(r495360)
+++ head/www/igal2/Makefile	Mon Mar 11 16:43:36 2019	(r495361)
@@ -3,19 +3,18 @@
 
 PORTNAME=	igal2
 PORTVERSION=	2.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www graphics
 MASTER_SITES=	http://igal.trexler.at/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	ports@bsdserwis.com
 COMMENT=	Simple CLI image gallery generator
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-RUN_DEPENDS=	convert:graphics/ImageMagick6
-
 CONFLICTS=	igal-1.*
+
 USES=		perl5
 NO_BUILD=	yes
 NO_ARCH=	yes
@@ -23,6 +22,23 @@ MAKE_ENV+=	DESTDIR=${STAGEDIR}
 
 OPTIONS_DEFINE=	EXIF
 EXIF_DESC=	Support EXIF data (-e option)
+OPTIONS_RADIO=	IMAGICK
+OPTIONS_RADIO_IMAGICK=IMAGICK_NOX11 IMAGICK_X11
+OPTIONS_DEFAULT=IMAGICK_NOX11
+IMAGICK_DESC=	${IMAGEMAGICK_DESC}
+IMAGICK_NOX11_DESC=Without X11 support
+IMAGICK_X11_DESC=With X11 support
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MIMAGICK_X11}
+RUN_DEPENDS+=	${LOCALBASE}/bin/convert:graphics/ImageMagick6
+.endif
+
+.if ${PORT_OPTIONS:MIMAGICK_NOX11}
+RUN_DEPENDS+=	${LOCALBASE}/bin/convert:graphics/ImageMagick6-nox11
+.endif
+
 EXIF_RUN_DEPENDS=	p5-Image-ExifTool>=7.0:graphics/p5-Image-ExifTool
 
 post-patch:
@@ -31,4 +47,4 @@ post-patch:
 post-install:
 	${LN} -sf igal2 ${STAGEDIR}${PREFIX}/bin/igal
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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