From 361a77c0b1a03bba6d70fbf81fe2ddd38c748a98 Mon Sep 17 00:00:00 2001 From: swills Date: Sun, 23 Jun 2013 03:33:41 +0000 Subject: - Make X11 dependency on ImageMagick optional PR: ports/179481 Submitted by: David Demelier --- graphics/rubygem-rmagick/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'graphics') 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 + +.if ${PORT_OPTIONS:MX11} +LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick +.else +LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick-nox11 +.endif + .include -- cgit