diff options
author | tmclaugh <tmclaugh@FreeBSD.org> | 2009-04-06 13:12:40 +0800 |
---|---|---|
committer | tmclaugh <tmclaugh@FreeBSD.org> | 2009-04-06 13:12:40 +0800 |
commit | 7692c52970d624fb95cc0ad4fd5080f3d267c136 (patch) | |
tree | d79717161ab96c3e39b1a9fe76f2301bf44a2c2d /databases | |
parent | 5362ffaf80235d865a7623772083d97bbb63ca21 (diff) | |
download | freebsd-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')
-rw-r--r-- | databases/py-bsddb/Makefile | 12 | ||||
-rw-r--r-- | databases/py25-bsddb/Makefile | 12 |
2 files changed, 20 insertions, 4 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> diff --git a/databases/py25-bsddb/Makefile b/databases/py25-bsddb/Makefile index 048d14d08530..d70bb1cf02c9 100644 --- a/databases/py25-bsddb/Makefile +++ b/databases/py25-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> |