net/rrdtool fails to build when ruby is installed?
Steve Clement
steve at localhost.lu
Mon May 7 06:46:54 PDT 2007
Henrik Brix Andersen wrote:
> Hi,
>
> On Sat, May 05, 2007 at 04:25:41PM -0700, Kian Mohageri wrote:
>
>> I'm running into an error (seen below) when attempting to build the
>> latest net/rrdtool when Ruby is installed.
>>
A first step would be adding the ruby module to the port, see the
attached diff against the port, if the maintainer could do us the honors :)
As this disable the ruby module by default most users would be "safe"
for now.
And perhaps someone already found out what causes
the compile issue "against ruby/with gmake"
cheers,
Steve Clement
-------------- next part --------------
--- Makefile Mon May 7 15:16:59 2007
+++ /usr/ports/net/rrdtool/Makefile Mon May 7 15:14:28 2007
@@ -25,9 +25,19 @@
CONFIGURE_ARGS= --enable-perl-site-install --disable-tcl
-OPTIONS= PYTHON_MODULE "Build PYTHON bindings" off
+OPTIONS+= PYTHON_MODULE "Build PYTHON bindings" off
+OPTIONS+= RUBY_MODULE "Build RUBY bindings" off
.include <bsd.port.pre.mk>
+.if defined(WITH_RUBY_MODULE)
+USE_RUBY= yes
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+PLIST_SUB+= WITH_RUBY=""
+CONFIGURE_ARGS+= --enable-ruby
+.else
+CONFIGURE_ARGS+= --disable-ruby
+PLIST_SUB+= WITH_RUBY="@comment "
+.endif
.if defined(WITH_PYTHON_MODULE)
USE_PYTHON= yes
.include "${PORTSDIR}/Mk/bsd.python.mk"
More information about the freebsd-ports
mailing list