aboutsummaryrefslogtreecommitdiff
path: root/databases/ruby-bdb
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-05-12 18:05:39 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-05-12 18:05:39 +0000
commitc051f07c733dd311ca1c87b30984586b73cf42ab (patch)
tree514b6eee46f66cf47513f3ce15632270639b2792 /databases/ruby-bdb
parentf7cb3dded2521d629d23df36ba6859b5c0adca8c (diff)
downloadports-c051f07c733dd311ca1c87b30984586b73cf42ab.tar.gz
ports-c051f07c733dd311ca1c87b30984586b73cf42ab.zip
Notes
Diffstat (limited to 'databases/ruby-bdb')
-rw-r--r--databases/ruby-bdb/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile
index 864d76faf722..9bcdbf685737 100644
--- a/databases/ruby-bdb/Makefile
+++ b/databases/ruby-bdb/Makefile
@@ -16,23 +16,31 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
COMMENT= Ruby interface to Sleepycat's Berkeley DB revision 2 or later
-LIB_DEPENDS= db${WITH_BDB_VER}:${PORTSDIR}/databases/db${WITH_BDB_VER}
+LIB_DEPENDS= db${LIB_SUFFIX}:${PORTSDIR}/databases/db${WITH_BDB_VER}
-.if defined(WITH_BDB3) || defined(WITH_DB3)
+CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}[2-4]*
+
+.if defined(WITH_BDB2) || defined(WITH_DB2)
+WITH_BDB_VER= 2
+.elif defined(WITH_BDB3) || defined(WITH_DB3)
WITH_BDB_VER= 3
.elif defined(WITH_BDB4) || defined(WITH_DB4)
WITH_BDB_VER= 4
.elif defined(WITH_BDB41) || defined(WITH_DB41)
WITH_BDB_VER= 41
+.elif defined(WITH_BDB42) || defined(WITH_DB42)
+WITH_BDB_VER= 42
+LIB_SUFFIX= -4.2
.endif
WITH_BDB_VER?= 4
+LIB_SUFFIX?= ${WITH_BDB_VER}
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_RUBY_RDOC= yes
CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db${WITH_BDB_VER}" \
- --with-db-version=${WITH_BDB_VER}
+ --with-db-version=${LIB_SUFFIX}
INSTALL_TARGET= site-install
DOCS= Changes \