svn commit: r495361 - head/www/igal2

Rodrigo Osorio rodrigo at FreeBSD.org
Mon Mar 11 16:43:37 UTC 2019


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 at 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 at FreeBSD.org
+MAINTAINER=	ports at 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>


More information about the svn-ports-all mailing list