svn commit: r321608 - head/graphics/rubygem-rmagick

Steve Wills swills at FreeBSD.org
Sun Jun 23 03:33:42 UTC 2013


Author: swills
Date: Sun Jun 23 03:33:41 2013
New Revision: 321608
URL: http://svnweb.freebsd.org/changeset/ports/321608

Log:
  - Make X11 dependency on ImageMagick optional
  
  PR:		ports/179481
  Submitted by:	David Demelier <demelier.david at gmail.com>

Modified:
  head/graphics/rubygem-rmagick/Makefile   (contents, props changed)

Modified: head/graphics/rubygem-rmagick/Makefile
==============================================================================
--- head/graphics/rubygem-rmagick/Makefile	Sun Jun 23 02:26:26 2013	(r321607)
+++ head/graphics/rubygem-rmagick/Makefile	Sun Jun 23 03:33:41 2013	(r321608)
@@ -8,10 +8,19 @@ MASTER_SITES=		RG
 MAINTAINER=		ruby at FreeBSD.org
 COMMENT=		Ruby binding for ImageMagick
 
-LIB_DEPENDS=		MagickWand:${PORTSDIR}/graphics/ImageMagick
-
 USE_RUBY=		yes
 USE_RUBYGEMS=		yes
 RUBYGEM_AUTOPLIST=	yes
 
+OPTIONS_DEFINE=		X11
+OPTIONS_DEFAULT=	X11
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MX11}
+LIB_DEPENDS=	MagickWand:${PORTSDIR}/graphics/ImageMagick
+.else
+LIB_DEPENDS=	MagickWand:${PORTSDIR}/graphics/ImageMagick-nox11
+.endif
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list