[vlc-devel] [PATCH 2/4] contrib: add jsoncpp

Adrien Maglo magsoft at videolan.org
Thu Aug 28 09:08:33 CEST 2014


Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
---
 contrib/src/jsoncpp/rules.mak | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 contrib/src/jsoncpp/rules.mak

diff --git a/contrib/src/jsoncpp/rules.mak b/contrib/src/jsoncpp/rules.mak
new file mode 100644
index 0000000..413bf8d
--- /dev/null
+++ b/contrib/src/jsoncpp/rules.mak
@@ -0,0 +1,29 @@
+# jsoncpp
+
+JSONCPP_GITURL := git://github.com/open-source-parsers/jsoncpp.git
+JSONCPP_VERSION := git
+
+PKGS += jsoncpp
+ifeq ($(call need_pkg,"jsoncpp"),)
+PKGS_FOUND += jsoncpp
+endif
+
+$(TARBALLS)/jsoncpp-$(JSONCPP_VERSION).tar.xz:
+	$(call download_git,$(JSONCPP_GITURL))
+
+.sum-jsoncpp: jsoncpp-$(JSONCPP_VERSION).tar.xz
+	$(warning $@ not implemented)
+	touch $@
+
+jsoncpp: jsoncpp-$(JSONCPP_VERSION).tar.xz .sum-jsoncpp
+	$(UNPACK)
+	$(MOVE)
+
+.jsoncpp: jsoncpp
+	cd $< && $(HOSTVARS_PIC) $(CMAKE) \
+		-DCMAKE_BUILD_TYPE=release \
+		-DJSONCPP_LIB_BUILD_SHARED=OFF \
+                -DJSONCPP_WITH_TESTS=OFF \
+		-G "Unix Makefiles"
+	cd $< && $(MAKE) install
+	touch $@
-- 
1.9.1




More information about the vlc-devel mailing list