76d6ac6122
Update databases/db3 to 3.3.11, and fix the few ports that need sorting after the shlib version update, and a slight API change from 3.2.x->3.3.x
36 lines
907 B
Makefile
36 lines
907 B
Makefile
# 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
|
|
PORTREVISION= 1
|
|
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.3:${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>
|