databases/py-berkeleydb: Fix build with db18

PR:		262135
This commit is contained in:
Yasuhiro Kimura 2022-02-25 22:54:00 -06:00 committed by Muhammad Moinur Rahman
parent 75d3ef6c84
commit 2214191eff

View file

@ -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>