aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-bsddb
diff options
context:
space:
mode:
authortmclaugh <tmclaugh@FreeBSD.org>2009-04-06 13:12:40 +0800
committertmclaugh <tmclaugh@FreeBSD.org>2009-04-06 13:12:40 +0800
commit7692c52970d624fb95cc0ad4fd5080f3d267c136 (patch)
treed79717161ab96c3e39b1a9fe76f2301bf44a2c2d /databases/py-bsddb
parent5362ffaf80235d865a7623772083d97bbb63ca21 (diff)
downloadfreebsd-ports-gnome-7692c52970d624fb95cc0ad4fd5080f3d267c136.tar.gz
freebsd-ports-gnome-7692c52970d624fb95cc0ad4fd5080f3d267c136.tar.zst
freebsd-ports-gnome-7692c52970d624fb95cc0ad4fd5080f3d267c136.zip
Fix build with Python 2.6
- chase moved db.h include location PR: 130410 Submitted by: David Naylor Approved by: maintainer timeout
Diffstat (limited to 'databases/py-bsddb')
-rw-r--r--databases/py-bsddb/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/databases/py-bsddb/Makefile b/databases/py-bsddb/Makefile
index 048d14d08530..d70bb1cf02c9 100644
--- a/databases/py-bsddb/Makefile
+++ b/databases/py-bsddb/Makefile
@@ -28,12 +28,20 @@ MD5_FILE= ${PORTSDIR}/lang/python/distinfo
MAKE_ENV= BSDDB_VERSION=${BDB_LIB_NAME}
PLIST_FILES= %%PYTHON_SITELIBDIR%%/_bsddb.so
+.include <bsd.port.pre.mk>
+
post-extract:
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
+.if ${PYTHON_REL} < 260
+BSDDB_PATCH=_bsddb.c
+.else
+BSDDB_PATCH=bsddb.h
+.endif
+
post-patch:
${REINPLACE_CMD} -e \
's,^\(#include.*\)\(db\.h.*\)$$,\1${BDB_INCLUDE_DIR}/\2,' \
- ${WRKSRC}/_bsddb.c
+ ${WRKSRC}/${BSDDB_PATCH}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>