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
|
2007-03-25 16:51:53 +00:00
|
|
|
PORTVERSION= 4.5.0
|
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
|
|
|
|
2006-04-22 04:32:29 +00:00
|
|
|
USE_BDB= yes
|
2001-05-19 14:20:34 +00:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 13:33:57 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2006-04-22 04:32:29 +00:00
|
|
|
PYDISTUTILS_CONFIGUREARGS=--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
|
|
|
|
PYDISTUTILS_BUILDARGS= --libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
|
2002-07-10 19:15:39 +00:00
|
|
|
PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}
|
2001-05-19 14:20:34 +00:00
|
|
|
|
2007-03-25 16:51:53 +00:00
|
|
|
PORTDOCS= *
|
2007-08-04 11:41:30 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
2007-03-25 16:51:53 +00:00
|
|
|
|
2002-07-10 19:15:39 +00:00
|
|
|
post-patch:
|
2006-04-22 04:32:29 +00:00
|
|
|
${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
|
2001-05-19 14:20:34 +00:00
|
|
|
|
2007-03-25 16:51:53 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/docs && ${FIND} . | \
|
|
|
|
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
|
2001-05-19 14:20:34 +00:00
|
|
|
.include <bsd.port.mk>
|