forked from Lainports/freebsd-ports
TOML config parser and serializer for C++ Features: - Header-only (optional!) - Supports the latest TOML release v1.0.0, plus optional support for some unreleased TOML features - Passes all tests in the toml-test suite - Supports serializing to JSON and YAML - Proper UTF-8 handling (incl. BOM) - C++17 (plus some C++20 features where available, e.g. experimental support for char8_t strings) - Doesn't require RTTI - Works with or without exceptions https://marzer.github.io/tomlplusplus/
33 lines
846 B
Makefile
33 lines
846 B
Makefile
PORTNAME= tomlplusplus
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.4.0
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= TOML config parser and serializer for C++
|
|
WWW= https://marzer.github.io/tomlplusplus/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= cmake:devel/cmake-core
|
|
TEST_DEPENDS= catch>0:devel/catch
|
|
|
|
USES= compiler:c++17-lang meson pkgconfig
|
|
USE_GITHUB= yes
|
|
USE_LDCONFIG= yes
|
|
GH_ACCOUNT= marzer
|
|
MESON_ARGS= -Duse_vendored_libs=false
|
|
|
|
post-patch:
|
|
# Convert codeset from GNU to IANA
|
|
@${REINPLACE_CMD} 's/utf8/UTF-8/' ${WRKSRC}/tests/meson.build
|
|
|
|
pre-test:
|
|
@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
|
|
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
|
|
${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dbuild_tests=true"; \
|
|
${TOUCH} ${WRKDIR}/.meson_build_tests; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|