2016-03-26 03:31:15 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-12-08 23:01:03 +01:00
|
|
|
PORTNAME= libfmt
|
2018-04-01 22:13:38 +02:00
|
|
|
DISTVERSION= 4.1.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.
This includes ports
- featuring USE_GCC=yes or USE_GCC=any,
- featuring USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and those
- with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.
PR: 222542
2018-07-30 00:18:44 +02:00
|
|
|
PORTREVISION= 1
|
2016-03-26 03:31:15 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
MAINTAINER= SlavaMikerov@gmail.com
|
2016-12-08 23:01:03 +01:00
|
|
|
COMMENT= Fmt is an open-source formatting library for C++
|
2016-03-26 03:31:15 +01:00
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE
|
2017-11-07 22:47:05 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
|
2016-03-26 03:31:15 +01:00
|
|
|
|
2017-11-07 22:47:05 +01:00
|
|
|
USES= cmake:outsource compiler:c++11-lib
|
2016-03-26 03:31:15 +01:00
|
|
|
USE_GITHUB= yes
|
2016-12-08 23:01:03 +01:00
|
|
|
GH_ACCOUNT= fmtlib
|
|
|
|
GH_PROJECT= fmt
|
2018-04-01 22:13:38 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_ARGS= -DFMT_DOC:BOOL=OFF -DFMT_TEST:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON
|
|
|
|
|
|
|
|
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
|
2016-03-26 03:31:15 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|