aboutsummaryrefslogtreecommitdiff
path: root/net/rrdtool
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-05-23 14:15:19 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-05-23 14:15:19 +0000
commit2f78a0380bff0708b4c31cc84bd51d00d3916bdd (patch)
tree69ef07d0461d9865e775ea0c7354efcc83bd3cf4 /net/rrdtool
parentc9a04380685a3c7eec86456f94e2f184bb8f2649 (diff)
downloadports-2f78a0380bff0708b4c31cc84bd51d00d3916bdd.tar.gz
ports-2f78a0380bff0708b4c31cc84bd51d00d3916bdd.zip
Notes
Diffstat (limited to 'net/rrdtool')
-rw-r--r--net/rrdtool/Makefile13
-rw-r--r--net/rrdtool/files/patch-bindings-Makefile.in16
-rw-r--r--net/rrdtool/pkg-plist1
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