aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-06-23 11:33:41 +0800
committerswills <swills@FreeBSD.org>2013-06-23 11:33:41 +0800
commit361a77c0b1a03bba6d70fbf81fe2ddd38c748a98 (patch)
treefdea70bc2cdb509635fa2fa9f7ef88a433406c5d /graphics
parent1c23c5190ed79ede43cf953f372f925c622952f8 (diff)
downloadfreebsd-ports-gnome-361a77c0b1a03bba6d70fbf81fe2ddd38c748a98.tar.gz
freebsd-ports-gnome-361a77c0b1a03bba6d70fbf81fe2ddd38c748a98.tar.zst
freebsd-ports-gnome-361a77c0b1a03bba6d70fbf81fe2ddd38c748a98.zip
- Make X11 dependency on ImageMagick optional
PR: ports/179481 Submitted by: David Demelier <demelier.david@gmail.com>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/rubygem-rmagick/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/graphics/rubygem-rmagick/Makefile b/graphics/rubygem-rmagick/Makefile
index 7d68f8018003..40fecde85646 100644
--- a/graphics/rubygem-rmagick/Makefile
+++ b/graphics/rubygem-rmagick/Makefile
@@ -8,10 +8,19 @@ MASTER_SITES= RG
MAINTAINER= ruby@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>