summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-01-15 21:56:52 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-01-15 21:56:52 +0000
commitf84dff8ad85ae55187cc94dd725a77df74336cf8 (patch)
treed06231af8c264ee2c589261faedb799cbf25bc1c /databases/ruby-bdb
parentRemove an obsolete patch (Perl substitution) against extconf.rb. (diff)
Add a WITH_BDB4 knob.
Notes
Notes: svn path=/head/; revision=53133
Diffstat (limited to 'databases/ruby-bdb')
-rw-r--r--databases/ruby-bdb/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile
index eeb9c2ec2409..1bc6163bcce8 100644
--- a/databases/ruby-bdb/Makefile
+++ b/databases/ruby-bdb/Makefile
@@ -10,17 +10,27 @@ PORTVERSION= 0.2.9
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+#.if defined(WITH_BDB4)
+#PKGNAMESUFFIX= 4
+#.endif
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
+.if defined(WITH_BDB4)
+LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
+.else
LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3
+.endif
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db3" \
- --with-db-lib-dir="${PREFIX}/lib/db3"
+.if defined(WITH_BDB4)
+CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db4"
+.else
+CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db3"
+.endif
INSTALL_TARGET= site-install
DOCS= Changes README.en bdb.html bdb.rd docs/*