2001-05-19 14:20:34 +00:00
|
|
|
# New ports collection makefile for: py-bsddb3
|
|
|
|
# Date created: 22 March 2001
|
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bsddb3
|
2005-10-10 14:44:10 +00:00
|
|
|
PORTVERSION= 4.3.3
|
2001-05-19 14:20:34 +00:00
|
|
|
CATEGORIES= databases python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-09-19 07:36:33 +00:00
|
|
|
MASTER_SITE_SUBDIR= pybsddb
|
2001-05-19 14:20:34 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2002-06-25 07:50:58 +00:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2003-02-25 06:25:35 +00:00
|
|
|
COMMENT= Python extension module for BerkeleyDB 3 and 4
|
2001-05-19 14:20:34 +00:00
|
|
|
|
2002-07-10 19:15:39 +00:00
|
|
|
.if defined(WITH_DB3)
|
2004-01-26 01:54:59 +00:00
|
|
|
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
|
2002-08-22 19:13:46 +00:00
|
|
|
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
|
2002-07-10 19:15:39 +00:00
|
|
|
DBVERSION= db3
|
2004-01-26 01:54:59 +00:00
|
|
|
DBHEADER= db3
|
|
|
|
.elif ${WITH_BDB_VER} == 4
|
2002-07-10 19:15:39 +00:00
|
|
|
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
|
|
|
|
DBVERSION= db4
|
2004-01-26 01:54:59 +00:00
|
|
|
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
|
2004-10-15 15:05:24 +00:00
|
|
|
IGNORE= "WITH_BDB_VER must be 3, 4, 41 or 42"
|
2004-01-26 01:54:59 +00:00
|
|
|
.endif
|
2002-07-10 19:15:39 +00:00
|
|
|
.endif
|
2001-05-19 14:20:34 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2002-04-29 13:33:57 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2002-07-10 19:15:39 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-10-15 15:05:24 +00:00
|
|
|
PYDISTUTILS_CONFIGUREARGS=--libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
|
2002-07-10 19:15:39 +00:00
|
|
|
PYDISTUTILS_BUILDARGS= --libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
|
|
|
|
PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}
|
2001-05-19 14:20:34 +00:00
|
|
|
|
2002-07-10 19:15:39 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's,%%DBVERSION%%,${DBVERSION},g' ${WRKSRC}/setup.py
|
2004-10-15 15:05:24 +00:00
|
|
|
${REINPLACE_CMD} 's,<db\.h>,<${DBHEADER}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c
|
2001-05-19 14:20:34 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|