Skip to content

Commit

Permalink
databases/py-berkeleydb: Fix build with db18
Browse files Browse the repository at this point in the history
PR:		262135
  • Loading branch information
Yasuhiro Kimura authored and 5u623l20 committed Feb 26, 2022
1 parent 75d3ef6 commit 2214191
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion databases/py-berkeleydb/Makefile
Expand Up @@ -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}| ; \
Expand All @@ -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>

0 comments on commit 2214191

Please sign in to comment.