[patch] graphics/ruby-rmagick depends on ImageMagick with X11
David Demelier
demelier.david at gmail.com
Fri Apr 12 07:33:42 UTC 2013
Hello,
There is something I don't understand very well, I've set WITHOUT_X11
and OPTIONS_UNSET=X11 in my /etc/make.conf, but installing www/redmine
will break (in poudriere) because of duplicated origin for
ImageMagick. Some of the ports will install ImageMagick-nox11 and some
others like graphics/ruby-rmagick will install ImageMagick normal.
However I see in the ImageMagick's makefile that the conditional X11
option will add the suffix -nox11 so why graphics/ruby-rmagick will
pull a dependency graphics/ImageMagick and not
graphics/ImageMagick-nox11?
I think there is a design problem here but I guess this has been
discussed a lot, for a temporarly workaround I have the following
patch:
--- Makefile.orig 2013-04-12 08:56:09.000000000 +0200
+++ Makefile 2013-04-12 09:05:52.000000000 +0200
@@ -13,7 +13,18 @@
MAINTAINER= ruby at FreeBSD.org
COMMENT= A Ruby binding for ImageMagick
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT=X11
+
+OPTIONSFILE?= ${PORT_DBDIR}/ruby-${PORTNAME}/options
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MX11}
LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick
+.else
+LIB_DEPENDS= MagickWand:${PORTSDIR}/graphics/ImageMagick-nox11
+.endif
USE_BZIP2= yes
USE_RUBY= yes
--
Demelier David
More information about the freebsd-ports
mailing list