aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-bsddb3/Makefile
blob: 70c7b1521de81431b729f2463940b1a6e210054f (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
# New ports collection makefile for:    py-bsddb3
# Date created:             22 March 2001
# Whom:                 Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#

PORTNAME=   bsddb3
PORTVERSION=    4.4.2
CATEGORIES= databases python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pybsddb
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= perky@FreeBSD.org
COMMENT=    Python extension module for BerkeleyDB 3 and 4

USE_BDB=    yes
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
USE_REINPLACE=  yes
PYDISTUTILS_CONFIGUREARGS=--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_BUILDARGS=  --libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}

post-patch:
    ${REINPLACE_CMD} 's,%%DBVERSION%%,${BDB_LIB_NAME},g' ${WRKSRC}/setup.py
    ${REINPLACE_CMD} 's,<db\.h>,<${BDB_INCLUDE_DIR}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c

.include <bsd.port.mk>