aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libfmt/Makefile
blob: 8f8b72b421ed2e8f9219cbf8cff2d369824e3288 (plain) (blame)
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
# $FreeBSD$

PORTNAME=   libfmt
DISTVERSION=    5.3.0
CATEGORIES= devel

MAINTAINER= SlavaMikerov@gmail.com
COMMENT=    Fmt is an open-source formatting library for C++

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE.rst

USES=       cmake compiler:c++11-lib

USE_GITHUB= yes
GH_ACCOUNT= fmtlib
GH_PROJECT= fmt
USE_LDCONFIG=   yes
CMAKE_ARGS= -DFMT_DOC:BOOL=OFF -DFMT_TEST:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON \
        -DFMT_PKGCONFIG_DIR=${PREFIX}/libdata/pkgconfig

PLIST_SUB=  SHL3=${PORTVERSION} SHL1=${PORTVERSION:R:R}

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>