summaryrefslogtreecommitdiff
path: root/devel/libfmt/Makefile
blob: a0a039802bcdc0ba002e40b6ff377b4615e2c828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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>