aboutsummaryrefslogtreecommitdiff
path: root/devel/jsoncpp/Makefile
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-01-21 18:43:56 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-01-21 18:43:56 +0000
commite3fd61c83fb81707f6554df8ffe6c37a375ee67a (patch)
tree707724e9a347c5febd5106a671588f7a5f5205f0 /devel/jsoncpp/Makefile
parentcaf68bc35be9ac84f61c38b1685789491fc19894 (diff)
downloadports-e3fd61c83fb81707f6554df8ffe6c37a375ee67a.tar.gz
ports-e3fd61c83fb81707f6554df8ffe6c37a375ee67a.zip
Notes
Diffstat (limited to 'devel/jsoncpp/Makefile')
-rw-r--r--devel/jsoncpp/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/jsoncpp/Makefile b/devel/jsoncpp/Makefile
new file mode 100644
index 000000000000..6d2d59c5b5f1
--- /dev/null
+++ b/devel/jsoncpp/Makefile
@@ -0,0 +1,34 @@
+# Created by: Johan Str??m <johna@stromnet.se>
+# $FreeBSD$
+
+PORTNAME= jsoncpp
+DISTVERSION= 0.6.0-rc2
+CATEGORIES= devel
+MASTER_SITES= SF/${PORTNAME}/jsoncpp/${DISTVERSION}
+DISTNAME= jsoncpp-src-${DISTVERSION}
+
+MAINTAINER= johan@stromnet.se
+COMMENT= JSON reader and writer library for C++
+
+LICENSE= MIT
+
+USES= dos2unix scons
+USE_LDCONFIG= yes
+
+MAKE_ARGS= platform=linux-gcc
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/SConstruct
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp
+ (cd ${WRKSRC}/include/ && ${COPYTREE_SHARE} json/ ${STAGEDIR}${PREFIX}/include/jsoncpp/)
+ (cd ${WRKSRC}/libs/linux-gcc-FreeBSD/ && \
+ ${INSTALL_LIB} libjson_linux-gcc-FreeBSD_libmt.a \
+ ${STAGEDIR}${PREFIX}/lib/libjsoncpp.a)
+ (cd ${WRKSRC}/libs/linux-gcc-FreeBSD/ && \
+ ${INSTALL_LIB} libjson_linux-gcc-FreeBSD_libmt.so \
+ ${STAGEDIR}${PREFIX}/lib/libjsoncpp.so.0)
+ (cd ${STAGEDIR}${PREFIX}/lib/ && ${LN} -s libjsoncpp.so.0 libjsoncpp.so )
+
+.include <bsd.port.mk>