1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/databases/py-bsddb3/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

# 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
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pybsddb
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= perky@FreeBSD.org
2003-02-25 06:25:35 +00:00
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
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
IGNORE= "WITH_BDB_VER must be 3, 4, 41 or 42"
.endif
.endif
USE_PYTHON= yes
2002-04-29 13:33:57 +00:00
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
PYDISTUTILS_CONFIGUREARGS=--libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_BUILDARGS= --libs="-l${DBVERSION}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}
post-patch:
${REINPLACE_CMD} 's,%%DBVERSION%%,${DBVERSION},g' ${WRKSRC}/setup.py
${REINPLACE_CMD} 's,<db\.h>,<${DBHEADER}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c
.include <bsd.port.mk>