aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-bdb
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-05-13 01:55:00 +0800
committerknu <knu@FreeBSD.org>2004-05-13 01:55:00 +0800
commit8fe2aa04fd6275f180db7b39135fc8dbc89f410e (patch)
tree75e6be3d843eb2aaa1eb60ec7aea750b4c676904 /databases/ruby-bdb
parentd6b2dad891b5a43d19af3495aef9424f94a70484 (diff)
downloadfreebsd-ports-gnome-8fe2aa04fd6275f180db7b39135fc8dbc89f410e.tar.gz
freebsd-ports-gnome-8fe2aa04fd6275f180db7b39135fc8dbc89f410e.tar.zst
freebsd-ports-gnome-8fe2aa04fd6275f180db7b39135fc8dbc89f410e.zip
- Build with db4 instead of db3 by default.
- Always suffix db's version number to PKGNAME.
Diffstat (limited to 'databases/ruby-bdb')
-rw-r--r--databases/ruby-bdb/Makefile31
1 files changed, 12 insertions, 19 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile
index 792078319e44..864d76faf722 100644
--- a/databases/ruby-bdb/Makefile
+++ b/databases/ruby-bdb/Makefile
@@ -10,36 +10,29 @@ PORTVERSION= 0.5.0
CATEGORIES= databases ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
-.if defined(WITH_BDB4)
-PKGNAMESUFFIX= 4
-.endif
+PKGNAMESUFFIX= ${WITH_BDB_VER}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
COMMENT= Ruby interface to Sleepycat's Berkeley DB revision 2 or later
-.if defined(WITH_BDB41)
-LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
-.elif defined(WITH_BDB4)
-LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
-.else
-LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
+LIB_DEPENDS= db${WITH_BDB_VER}:${PORTSDIR}/databases/db${WITH_BDB_VER}
+
+.if 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
.endif
+WITH_BDB_VER?= 4
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_RUBY_RDOC= yes
-.if defined(WITH_BDB41)
-CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db41" \
- --with-db-version=41
-.elif defined(WITH_BDB4)
-CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db4" \
- --with-db-version=4
-.else
-CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db3" \
- --with-db-version=3
-.endif
+CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db${WITH_BDB_VER}" \
+ --with-db-version=${WITH_BDB_VER}
INSTALL_TARGET= site-install
DOCS= Changes \