git: 2214191eff6c - main - databases/py-berkeleydb: Fix build with db18
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Feb 2022 04:55:25 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2214191eff6c1fd01ce14791f04077dcd16408da commit 2214191eff6c1fd01ce14791f04077dcd16408da Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-02-26 04:54:00 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2022-02-26 04:54:00 +0000 databases/py-berkeleydb: Fix build with db18 PR: 262135 --- databases/py-berkeleydb/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/databases/py-berkeleydb/Makefile b/databases/py-berkeleydb/Makefile index 1896f5e7edde..a4b2ab2b93e6 100644 --- a/databases/py-berkeleydb/Makefile +++ b/databases/py-berkeleydb/Makefile @@ -24,6 +24,12 @@ DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} OPTIONS_DEFINE= DOCS +.include <bsd.port.pre.mk> + +.if ${BDB_VER} > 5 +MAKE_ENV= YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=yes +.endif + post-patch: @${REINPLACE_CMD} 's|%%DBVERSION%%|${BDB_LIB_NAME}| ; \ s|%%BDB_INCLUDE_DIR%%|${BDB_INCLUDE_DIR}| ; \ @@ -41,4 +47,4 @@ post-install-DOCS-on: do-test: @(cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./test.py -.include <bsd.port.mk> +.include <bsd.port.post.mk>