aboutsummaryrefslogtreecommitdiff
path: root/databases/ruby-bdb/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2004-05-12 17:55:00 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2004-05-12 17:55:00 +0000
commitf7cb3dded2521d629d23df36ba6859b5c0adca8c (patch)
treeafa16019c8b2b784f50f9f60a8498625243b30f1 /databases/ruby-bdb/Makefile
parent16971313f11814159470533051ebcf61ce483f4f (diff)
downloadports-f7cb3dded2521d629d23df36ba6859b5c0adca8c.tar.gz
ports-f7cb3dded2521d629d23df36ba6859b5c0adca8c.zip
Notes
Diffstat (limited to 'databases/ruby-bdb/Makefile')
-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 \