Changeset View
Changeset View
Standalone View
Standalone View
devel/rapidjson/Makefile
Show All 17 Lines | |||||
BROKEN_aarch64= does not build: c++: error: the clang compiler does not support -march=native | BROKEN_aarch64= does not build: c++: error: the clang compiler does not support -march=native | ||||
BROKEN_armv6= does not build: c++: error: the clang compiler does not support -march=native | BROKEN_armv6= does not build: c++: error: the clang compiler does not support -march=native | ||||
BROKEN_sparc64= does not build: c++: error: the clang compiler does not support -march=native | BROKEN_sparc64= does not build: c++: error: the clang compiler does not support -march=native | ||||
BROKEN_powerpc64= does not build: c++: error: the clang compiler does not support -march=native | BROKEN_powerpc64= does not build: c++: error: the clang compiler does not support -march=native | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= miloyip | GH_ACCOUNT= miloyip | ||||
USES= cmake compiler:c++11-lang pathfix | USES= cmake compiler:c++11-lang pathfix | ||||
rakuco: This one works if you drop `MAKE_ARGS` (which is superfluous anyway). | |||||
OPTIONS_DEFINE= DOXYGEN EXAMPLES | OPTIONS_DEFINE= DOXYGEN EXAMPLES | ||||
OPTIONS_DEFAULT=${OPTIONS_DEFINE} | OPTIONS_DEFAULT=${OPTIONS_DEFINE} | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen | DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen | ||||
DOXYGEN_CMAKE_ON= -DRAPIDJSON_BUILD_DOC:BOOL=ON | DOXYGEN_CMAKE_ON= -DRAPIDJSON_BUILD_DOC:BOOL=ON | ||||
DOXYGEN_CMAKE_OFF= -DRAPIDJSON_BUILD_DOC:BOOL=OFF | DOXYGEN_CMAKE_OFF= -DRAPIDJSON_BUILD_DOC:BOOL=OFF | ||||
EXAMPLES_CMAKE_ON= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=ON | EXAMPLES_CMAKE_ON= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=ON | ||||
EXAMPLES_CMAKE_OFF= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=OFF | EXAMPLES_CMAKE_OFF= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=OFF | ||||
CXXFLAGS+= -Wno-c++98-compat # for EXAMPLES option, due to this bug: https://github.com/miloyip/rapidjson/issues/761 | CXXFLAGS+= -Wno-c++98-compat # for EXAMPLES option, due to this bug: https://github.com/miloyip/rapidjson/issues/761 | ||||
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" | |||||
CMAKE_ARGS= -DRAPIDJSON_BUILD_TESTS:BOOL=OFF | CMAKE_ARGS= -DRAPIDJSON_BUILD_TESTS:BOOL=OFF | ||||
DATADIR= ${PREFIX}/share/doc/RapidJSON | DATADIR= ${PREFIX}/share/doc/RapidJSON | ||||
PORTDATA= * | PORTDATA= * | ||||
post-patch: | 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|DOC_INSTALL_DIR}/examples"|CMAKE_INSTALL_PREFIX}/share/examples/${PORTNAME}"| ; s| -march=native||' ${WRKSRC}/CMakeLists.txt | ||||
@${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/example/CMakeLists.txt ${WRKSRC}/test/unittest/CMakeLists.txt | @${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/example/CMakeLists.txt ${WRKSRC}/test/unittest/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|.*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 | @${REINPLACE_CMD} -e 's|add_subdirectory.*googletest.*|link_directories(${LOCALBASE}/lib)|' ${WRKSRC}/test/CMakeLists.txt | ||||
post-install: | post-install: | ||||
@${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake* | @${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake* | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
This one works if you drop MAKE_ARGS (which is superfluous anyway).