1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/devel/libfmt/Makefile
2020-12-13 22:19:39 +00:00

38 lines
977 B
Makefile

# $FreeBSD$
PORTNAME= fmt
# Make sure to check devel/spdlog consumers too
PORTVERSION= 7.1.3
MASTER_SITES= https://github.com/fmtlib/fmt/releases/download/${PORTVERSION}/
CATEGORIES= devel
PKGNAMEPREFIX= lib
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Formatting library for C++
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
USES= cmake compiler:c++11-lang zip
USE_LDCONFIG= yes
CMAKE_OFF= FMT_DOC FMT_TEST
CMAKE_ON= BUILD_SHARED_LIBS
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= FULL_CACHE_DRAGONBOX
OPTIONS_DEFAULT=FULL_CACHE_DRAGONBOX
FULL_CACHE_DRAGONBOX_DESC= Use larger binary size for better performance
FULL_CACHE_DRAGONBOX_CXXFLAGS= -DFMT_USE_FULL_CACHE_DRAGONBOX=1
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFMT_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>