View | Details | Raw Unified | Return to bug 226401 | Differences between
and this patch

Collapse All | Expand All

(-)devel/jsoncpp/Makefile (-8 / +5 lines)
Lines 15-25 Link Here
15
USE_GITHUB=	yes
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	open-source-parsers
16
GH_ACCOUNT=	open-source-parsers
17
17
18
USES=		compiler:c++11-lang dos2unix scons
18
USES=		compiler:c++11-lang dos2unix cmake:noninja
19
USE_LDCONFIG=	yes
20
19
21
PLATFORM=	linux-gcc-FreeBSD
20
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS:BOOL=ON
22
MAKE_ARGS=	platform=${PLATFORM}
23
21
24
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
25
23
Lines 39-47 Link Here
39
do-install:
37
do-install:
40
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
38
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
41
	(cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/)
39
	(cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/)
42
	${INSTALL_DATA} ${WRKSRC}/libs/${PLATFORM}/libjsoncpp.a \
40
	${INSTALL_DATA} ${WRKSRC}/src/lib_json/libjsoncpp.a \
43
		${STAGEDIR}${PREFIX}/lib
41
		${STAGEDIR}${PREFIX}/lib
44
	${INSTALL_LIB} ${WRKSRC}/libs/${PLATFORM}/libjsoncpp.so.${DISTVERSION} \
42
	${INSTALL_LIB} ${WRKSRC}/src/lib_json/libjsoncpp.so.${DISTVERSION} \
45
		${STAGEDIR}${PREFIX}/lib
43
		${STAGEDIR}${PREFIX}/lib
46
	${LN} -s libjsoncpp.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.1
44
	${LN} -s libjsoncpp.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.1
47
	${LN} -s libjsoncpp.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so
45
	${LN} -s libjsoncpp.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so
Lines 53-59 Link Here
53
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/jsoncpp.pc
51
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/jsoncpp.pc
54
52
55
do-test:
53
do-test:
56
	@${ECHO} "Please note that 3 testcases are known to fail: https://github.com/open-source-parsers/jsoncpp/issues/628"
54
	${WRKSRC}/src/test_lib_json/jsoncpp_test --test-auto
57
	@cd ${WRKSRC} && CXX=${CXX} ${SCONS} platform=${PLATFORM} check
58
55
59
.include <bsd.port.post.mk>
56
.include <bsd.port.post.mk>

Return to bug 226401