diff options
author | knu <knu@FreeBSD.org> | 2004-05-13 02:05:39 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2004-05-13 02:05:39 +0800 |
commit | 1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d (patch) | |
tree | a2459b870b92ee77233b5c95cf6cd279830a8da0 | |
parent | 8fe2aa04fd6275f180db7b39135fc8dbc89f410e (diff) | |
download | freebsd-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.
-rw-r--r-- | databases/ruby-bdb/Makefile | 14 |
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 \ |