freebsd-ports/devel/rapidjson/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

47 lines
1.3 KiB
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= rapidjson
PORTVERSION= 1.1.0
DISTVERSIONPREFIX= v
PORTREVISION= 6
CATEGORIES= devel textproc
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast JSON parser/generator for C++ with both SAX/DOM style API
LICENSE= unknown
LICENSE_NAME= RapidJSON
LICENSE_FILE= ${WRKSRC}/license.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USE_GITHUB= yes
GH_ACCOUNT= Tencent
USES= cmake compiler:c++11-lang pathfix
NO_ARCH= yes
CMAKE_OFF= RAPIDJSON_BUILD_TESTS
OPTIONS_DEFINE= DOXYGEN EXAMPLES
OPTIONS_DEFAULT=${OPTIONS_DEFINE}
OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_CMAKE_BOOL= RAPIDJSON_BUILD_DOC
EXAMPLES_CMAKE_BOOL= RAPIDJSON_BUILD_EXAMPLES
DATADIR= ${PREFIX}/share/doc/RapidJSON
PORTDATA= *
CXXFLAGS+= -Wno-error
post-patch:
@${REINPLACE_CMD} -e 's|DOC_INSTALL_DIR}/examples"|CMAKE_INSTALL_PREFIX}/share/examples/${PORTNAME}"| ; s| -march=native||' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|.*travis.*||' ${WRKSRC}/CMakeLists.txt # travis_doc breaks cmake: see https://github.com/miloyip/rapidjson/issues/715
@${REINPLACE_CMD} -e 's|add_subdirectory.*googletest.*|link_directories(${LOCALBASE}/lib)|' ${WRKSRC}/test/CMakeLists.txt
post-install:
@${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake*
.include <bsd.port.mk>