diff options
author | pav <pav@FreeBSD.org> | 2007-05-23 22:15:19 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-05-23 22:15:19 +0800 |
commit | fc1fb17bbde8c0d5ea2bb74bc1fd29bbf2fb83a0 (patch) | |
tree | 2b55bb957bce8350aa14eb70688db37644907bf6 /net | |
parent | c31fd23a8f4e0da9685fdba19a71c9e1a8e1b1fa (diff) | |
download | freebsd-ports-gnome-fc1fb17bbde8c0d5ea2bb74bc1fd29bbf2fb83a0.tar.gz freebsd-ports-gnome-fc1fb17bbde8c0d5ea2bb74bc1fd29bbf2fb83a0.tar.zst freebsd-ports-gnome-fc1fb17bbde8c0d5ea2bb74bc1fd29bbf2fb83a0.zip |
- Add option for Ruby bindings
- Fix build for people with Ruby installed, who don't want the bindings
PR: ports/112513, also ports/112412, ports/112483, ports/112663,
ports/112679, ports/112883
Submitted by: clive
Approved by: portmgr (implicit), maintainer timeout (demon; 15 days)
Diffstat (limited to 'net')
-rw-r--r-- | net/rrdtool/Makefile | 13 | ||||
-rw-r--r-- | net/rrdtool/files/patch-bindings-Makefile.in | 16 | ||||
-rw-r--r-- | net/rrdtool/pkg-plist | 1 |
3 files changed, 25 insertions, 5 deletions
diff --git a/net/rrdtool/Makefile b/net/rrdtool/Makefile index 8a13d9c937a2..6558e3f49dea 100644 --- a/net/rrdtool/Makefile +++ b/net/rrdtool/Makefile @@ -25,7 +25,8 @@ USE_GMAKE= yes CONFIGURE_ARGS= --enable-perl-site-install --disable-tcl -OPTIONS= PYTHON_MODULE "Build PYTHON bindings" off +OPTIONS= PYTHON_MODULE "Build PYTHON bindings" off \ + RUBY_MODULE "Build RUBY bindings" off .include <bsd.port.pre.mk> .if defined(WITH_PYTHON_MODULE) @@ -38,6 +39,16 @@ CONFIGURE_ARGS+= --disable-python PLIST_SUB+= WITH_PYTHON="@comment " .endif +.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 + CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 -I${LOCALBASE}/include/freetype2 LDFLAGS+= -L${LOCALBASE}/lib diff --git a/net/rrdtool/files/patch-bindings-Makefile.in b/net/rrdtool/files/patch-bindings-Makefile.in index 06a4d13c68c5..cdbc0427e04d 100644 --- a/net/rrdtool/files/patch-bindings-Makefile.in +++ b/net/rrdtool/files/patch-bindings-Makefile.in @@ -1,13 +1,21 @@ ---- bindings/Makefile.in.orig Thu May 3 12:28:34 2007 -+++ bindings/Makefile.in Thu May 3 12:29:17 2007 -@@ -539,8 +539,8 @@ +--- bindings/Makefile.in.orig Thu May 3 02:06:59 2007 ++++ bindings/Makefile.in Tue May 8 13:20:37 2007 +@@ -539,14 +539,14 @@ all-local: @COMP_PERL@ @COMP_RUBY@ @COMP_PYTHON@ install-data-local: - test -f perl-piped/Makefile && cd perl-piped && $(MAKE) install || true - test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true +- test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true + test -f perl-piped/Makefile && cd perl-piped && $(MAKE) pure_install || true + test -f perl-shared/Makefile && cd perl-shared && $(MAKE) pure_install || true - test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true ++ test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) install || true test -d python/build && cd python && env LIBDIR=$(libdir) $(PYTHON) setup.py install --skip-build --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix) || true + # rules for buildung the ruby module + ruby: +- cd ruby && $(RUBY) extconf.rb && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) ++ cd ruby && $(RUBY) extconf.rb && $(MAKE) EPREFIX=$(exec_prefix) + + # rules for buildung the pyton module + python: diff --git a/net/rrdtool/pkg-plist b/net/rrdtool/pkg-plist index db9bc5830402..5b8cf2530223 100644 --- a/net/rrdtool/pkg-plist +++ b/net/rrdtool/pkg-plist @@ -108,6 +108,7 @@ include/rrd.h %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/RRDs.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/.packlist %%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/rrdtoolmodule.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/RRD.so @dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%/txt %%PORTDOCS%%@dirrm %%DOCSDIR%%/html |