aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
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>