aboutsummaryrefslogtreecommitdiff
path: root/databases/py-bsddb3
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-01-26 01:54:59 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-01-26 01:54:59 +0000
commit51c9f67671e25f867a2d9292fd81d06a5875aaff (patch)
treea5f5786d2b73fe0d8670c69b0a309ee560026d45 /databases/py-bsddb3
parent1bdbdf866b5220b93e58adb44d54ecacc0047237 (diff)
downloadports-51c9f67671e25f867a2d9292fd81d06a5875aaff.tar.gz
ports-51c9f67671e25f867a2d9292fd81d06a5875aaff.zip
Notes
Diffstat (limited to 'databases/py-bsddb3')
-rw-r--r--databases/py-bsddb3/Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index f79cd32c0c77..f45967d4d003 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -16,12 +16,33 @@ MAINTAINER= perky@FreeBSD.org
COMMENT= Python extension module for BerkeleyDB 3 and 4
.if defined(WITH_DB3)
+WITH_BDB_VER?= 3
+.elif defined(WITH_DB4)
+WITH_BDB_VER?= 4
+.else
+WITH_BDB_VER?= 41
+.endif
+
+.if defined(WITH_BDB_VER)
+.if ${WITH_BDB_VER} == 3
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
DBVERSION= db3
-PKGNAMESUFFIX= -db3
-.else
+DBHEADER= db3
+.elif ${WITH_BDB_VER} == 4
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
DBVERSION= db4
+DBHEADER= db4
+.elif ${WITH_BDB_VER} == 41
+LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
+DBVERSION= db41
+DBHEADER= db41
+.elif ${WITH_BDB_VER} == 42
+LIB_DEPENDS= db-4.2.2:${PORTSDIR}/databases/db42
+DBVERSION= db-4.2
+DBHEADER= db42
+.else
+BROKEN= "WITH_BDB_VER must be 3, 4, 41 or 42"
+.endif
.endif
USE_PYTHON= yes