aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-bdb
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-05-13 02:05:39 +0800
committerknu <knu@FreeBSD.org>2004-05-13 02:05:39 +0800
commit1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d (patch)
treea2459b870b92ee77233b5c95cf6cd279830a8da0 /databases/ruby-bdb
parent8fe2aa04fd6275f180db7b39135fc8dbc89f410e (diff)
downloadfreebsd-ports-gnome-1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d.tar.gz
freebsd-ports-gnome-1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d.tar.zst
freebsd-ports-gnome-1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d.zip
Add support for db2 and db42 in addition to db3, db4 and db41.
Add CONFLICTS entries.
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 \