diff options
author | knu <knu@FreeBSD.org> | 2004-05-12 18:05:39 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2004-05-12 18:05:39 +0000 |
commit | 1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d (patch) | |
tree | a2459b870b92ee77233b5c95cf6cd279830a8da0 /databases/ruby-bdb | |
parent | 8fe2aa04fd6275f180db7b39135fc8dbc89f410e (diff) | |
download | FreeBSD-ports-1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d.zip FreeBSD-ports-1ab7a5a4413b1c93c7919c31fbffafe16cb5a98d.tar.gz |
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/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile index 864d76f..9bcdbf6 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 \ |