Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2013 08:40:25 GMT
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179481: [patch] graphics/rubygem-rmagick: optional X11
Message-ID:  <201306110840.r5B8ePws006290@oldred.freebsd.org>
Resent-Message-ID: <201306110850.r5B8o0kR064881@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179481
>Category:       ports
>Synopsis:       [patch] graphics/rubygem-rmagick: optional X11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 08:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     David Demelier
>Release:        9.1-RELEASE-p1
>Organization:
>Environment:
FreeBSD Pomme.malikania.fr 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #4 r248092: Mon Mar 25 19:50:38 CET 2013     root@Pomme.malikania.fr:/usr/obj/usr/src/sys/Pomme  amd64

>Description:
On headless machine, if you compile without X11, this port will conflicts with ImageMagick and ImageMagick-nox11.

This add, just like my old patch for graphics/ruby-rmagick, an optional X11 option.
>How-To-Repeat:

>Fix:
--- patch.diff begins here ---
--- Makefile.orig       2013-06-11 09:06:12.000000000 +0200
+++ Makefile    2013-06-11 09:06:56.000000000 +0200
@@ -8,10 +8,19 @@
 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>
--- patch.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306110840.r5B8ePws006290>