blob: 904af43f7e9c41fc07a2f85b0185eacf0ecf4a3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# New ports collection makefile for: py-bsddb3
# Date created: 22 March 2001
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#
PORTNAME= bsddb3
PORTVERSION= 3.4.0
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pybsddb
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= perky@FreeBSD.org
.if defined(WITH_DB3)
LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3
DBVERSION= db3
.else
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
DBVERSION= db4
.endif
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
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>,<${DBVERSION}/db.h>,' ${WRKSRC}/src/_db.c
.include <bsd.port.mk>
|