Lines 35-42
Link Here
|
35 |
EXAMPLES_CMAKE_ON= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=ON |
35 |
EXAMPLES_CMAKE_ON= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=ON |
36 |
EXAMPLES_CMAKE_OFF= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=OFF |
36 |
EXAMPLES_CMAKE_OFF= -DRAPIDJSON_BUILD_EXAMPLES:BOOL=OFF |
37 |
|
37 |
|
|
|
38 |
.include <bsd.port.pre.mk> |
39 |
|
38 |
CXXFLAGS+= -Wno-c++98-compat # for EXAMPLES option, due to this bug: https://github.com/miloyip/rapidjson/issues/761 |
40 |
CXXFLAGS+= -Wno-c++98-compat # for EXAMPLES option, due to this bug: https://github.com/miloyip/rapidjson/issues/761 |
39 |
CMAKE_ARGS= -DRAPIDJSON_BUILD_TESTS:BOOL=OFF |
41 |
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 50 |
|
|
42 |
CXXFLAGS+= -Wno-zero-as-null-pointer-constant |
43 |
.endif |
44 |
CMAKE_ARGS+= -DRAPIDJSON_BUILD_TESTS:BOOL=OFF |
40 |
|
45 |
|
41 |
DATADIR= ${PREFIX}/share/doc/RapidJSON |
46 |
DATADIR= ${PREFIX}/share/doc/RapidJSON |
42 |
PORTDATA= * |
47 |
PORTDATA= * |
Lines 50-53
Link Here
|
50 |
post-install: |
55 |
post-install: |
51 |
@${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake* |
56 |
@${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake* |
52 |
|
57 |
|
53 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.post.mk> |