diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2004-01-26 01:54:59 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2004-01-26 01:54:59 +0000 |
commit | 51c9f67671e25f867a2d9292fd81d06a5875aaff (patch) | |
tree | a5f5786d2b73fe0d8670c69b0a309ee560026d45 /databases/py-bsddb | |
parent | 1bdbdf866b5220b93e58adb44d54ecacc0047237 (diff) | |
download | ports-51c9f67671e25f867a2d9292fd81d06a5875aaff.tar.gz ports-51c9f67671e25f867a2d9292fd81d06a5875aaff.zip |
Allow to build with bsddb 4.2.
PR: 61650
Submitted by: Scot W. Hetzel <hetzelsw@westbend.net>
Notes
Notes:
svn path=/head/; revision=99150
Diffstat (limited to 'databases/py-bsddb')
-rw-r--r-- | databases/py-bsddb/Makefile | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/databases/py-bsddb/Makefile b/databases/py-bsddb/Makefile index 49d1edb146e7..16d2e0410b43 100644 --- a/databases/py-bsddb/Makefile +++ b/databases/py-bsddb/Makefile @@ -7,7 +7,7 @@ PORTNAME= bsddb PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -18,15 +18,33 @@ MAINTAINER= perky@FreeBSD.org COMMENT= Python bindings to the Berkeley DB library .if defined(WITH_DB3) -LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 -DBVERSION= db3 -PKGNAMESUFFIX= -db3 +WITH_BDB_VER?= 3 .elif defined(WITH_DB4) -LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 -DBVERSION= db4 +WITH_BDB_VER?= 4 .else -LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41 -DBVERSION= db41 +WITH_BDB_VER?= 41 +.endif + +.if defined(WITH_BDB_VER) +.if ${WITH_BDB_VER} == 3 +LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 +DBVERSION= db3 +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 DIST_SUBDIR= python @@ -42,7 +60,7 @@ post-extract: post-patch: ${REINPLACE_CMD} -e \ - 's,^\(#include.*\)\(db\.h.*\)$$,\1${DBVERSION}/\2,' \ + 's,^\(#include.*\)\(db\.h.*\)$$,\1${DBHEADER}/\2,' \ ${WRKSRC}/_bsddb.c .include <bsd.port.mk> |