* Use upstream release archive as recommended by Porters Handbook * Use framework helpers when possible * Rearrange Makefile to better follow Porters Handbook and easier readability * Don't install unnecessary files in share directory PR: 269624 Reviewed by: Krzysztof <ports@bsdserwis.com> (maintainer)
44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
PORTNAME= libbson
|
|
DISTVERSION= 1.23.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://github.com/mongodb/mongo-c-driver/releases/download/${DISTVERSION}/
|
|
DISTNAME= mongo-c-driver-${DISTVERSION}
|
|
|
|
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 pathfix python:env pkgconfig
|
|
CPE_VENDOR= mongodb
|
|
USE_LDCONFIG= yes
|
|
|
|
CFLAGS+= -D__BSD_VISIBLE=1
|
|
DOCSDIR= ${PREFIX}/share/doc/mongo-c-driver
|
|
|
|
CMAKE_OFF= BUILD_TESTING \
|
|
ENABLE_EXAMPLES \
|
|
ENABLE_ICU \
|
|
ENABLE_MONGOC \
|
|
ENABLE_TESTS \
|
|
ENABLE_UNINSTALL \
|
|
ENABLE_ZLIB \
|
|
ENABLE_ZSTD
|
|
CMAKE_ARGS= -DBSON_HAVE_STRINGS_H=0
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_SUB= yes
|
|
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
|
|
DOCS_CMAKE_ON= -DENABLE_HTML_DOCS=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>
|