diff options
author | Tom McLaughlin <tmclaugh@FreeBSD.org> | 2009-04-06 05:12:40 +0000 |
---|---|---|
committer | Tom McLaughlin <tmclaugh@FreeBSD.org> | 2009-04-06 05:12:40 +0000 |
commit | 780a3db19cb1ec0a9e536144093d8b4006fe7bee (patch) | |
tree | 0476ec5047e36e76b0512dbc8f7d24ca732794b2 /databases/py-bsddb/Makefile | |
parent | 726c4d3aa576348f790b2760e62776811ee8666f (diff) | |
download | ports-780a3db19cb1ec0a9e536144093d8b4006fe7bee.tar.gz ports-780a3db19cb1ec0a9e536144093d8b4006fe7bee.zip |
Notes
Diffstat (limited to 'databases/py-bsddb/Makefile')
-rw-r--r-- | databases/py-bsddb/Makefile | 12 |
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> |