1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/databases/py25-bsddb/Makefile
Hye-Shik Chang c61f08b456 Add WITH_DB4 knob and change default to use db4.1.
Submitted by:	Rui Lopes <rui@ruilopes.com>
2003-11-21 05:17:53 +00:00

49 lines
1.1 KiB
Makefile

# New ports collection makefile for: py-bsddb
# Date created: 31 July 2003
# Whom: Hye-Shik Chang <perky@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= bsddb
PORTVERSION= ${PYTHON_PORTVERSION}
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= ${PYTHON_DISTFILE}
MAINTAINER= perky@FreeBSD.org
COMMENT= Python bindings to the Berkeley DB library
.if defined(WITH_DB3)
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
DBVERSION= db3
PKGNAMESUFFIX= -db3
.elif defined(WITH_DB4)
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
DBVERSION= db4
.else
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
DBVERSION= db41
.endif
DIST_SUBDIR= python
USE_PYTHON= 2.3+
USE_PYDISTUTILS=yes
USE_REINPLACE= yes
WRKSRC= ${PYTHON_WRKSRC}/Modules
MD5_FILE= ${PORTSDIR}/lang/python/distinfo
MAKE_ENV= BSDDB_VERSION=${DBVERSION}
post-extract:
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
post-patch:
${REINPLACE_CMD} -e \
's,^\(#include.*\)\(db\.h.*\)$$,\1${DBVERSION}/\2,' \
${WRKSRC}/_bsddb.c
.include <bsd.port.mk>