b85e8447d4
The DOCS option were installing both HTML documentation and manpages but these manpages weren't covered in the plist with the DOCS substition, so we're both fixing it and seperating them now with the new MANPAGES option. PR: 296718 Reported by: René Thümmler <beastie@tsukaisute.de> Approved by: Krzysztof <ports@bsdserwis.com> (maintainer) Approved by: osa, vvd (Mentors, implicit)
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
PORTNAME= libbson
|
|
DISTVERSION= 2.3.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= ports@bsdserwis.com
|
|
COMMENT= BSON utility library
|
|
WWW= https://github.com/mongodb/mongo-c-driver
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= cmake cpe python:env pkgconfig
|
|
CPE_VENDOR= mongodb
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= mongodb
|
|
GH_PROJECT= mongo-c-driver
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_ARGS= -DBSON_HAVE_STRINGS_H=0
|
|
CMAKE_OFF= BUILD_TESTING \
|
|
ENABLE_EXAMPLES \
|
|
ENABLE_ICU \
|
|
ENABLE_MONGOC \
|
|
ENABLE_TESTS \
|
|
ENABLE_UNINSTALL \
|
|
ENABLE_ZLIB \
|
|
ENABLE_ZSTD
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/mongo-c-driver
|
|
|
|
OPTIONS_DEFINE= DOCS MANPAGES
|
|
OPTIONS_DEFAULT=MANPAGES
|
|
OPTIONS_SUB= yes
|
|
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}furo>0:textproc/py-furo@${PY_FLAVOR}
|
|
DOCS_CMAKE_ON= -DENABLE_HTML_DOCS=ON
|
|
MANPAGES_BUILD_DEPENDS= ${DOCS_BUILD_DEPENDS:[1]}
|
|
MANPAGES_CMAKE_ON= -DENABLE_MAN_PAGES=ON
|
|
|
|
post-extract:
|
|
${ECHO} "${DISTVERSION}" > ${WRKSRC}/VERSION_CURRENT
|
|
|
|
post-install:
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/mongo-c-driver
|
|
|
|
.include <bsd.port.mk>
|