summaryrefslogtreecommitdiffstats
path: root/src/json_spirit.mk
diff options
context:
space:
mode:
authorRussell Standish <rks@parallel.hpcoders.com.au>2014-08-20 03:02:58 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-11-08 23:57:55 (GMT)
commit452dd1fd25a8e1a6451a66994e00564ae7673d81 (patch)
treed46826800b48bbeac1256853412178128d3e22e9 /src/json_spirit.mk
parentb2fcc7a4860f277da7ad9880277359f5117e2b8c (diff)
downloadmxe-452dd1fd25a8e1a6451a66994e00564ae7673d81.zip
mxe-452dd1fd25a8e1a6451a66994e00564ae7673d81.tar.gz
mxe-452dd1fd25a8e1a6451a66994e00564ae7673d81.tar.bz2
Added json_spirit package
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/json_spirit.mk')
-rw-r--r--src/json_spirit.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/json_spirit.mk b/src/json_spirit.mk
new file mode 100644
index 0000000..834eb19
--- /dev/null
+++ b/src/json_spirit.mk
@@ -0,0 +1,44 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := json_spirit
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 4.08
+$(PKG)_CHECKSUM := 65e942dc5ed209cf7d653a721aaf907c7196d978
+$(PKG)_SUBDIR := $(PKG)_v$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)_v$($(PKG)_VERSION).zip
+
+# The original source of this file at
+# http://www.codeproject.com/KB/recipes/JSON_Spirit/json_spirit_v4.08.zip
+# is behind a login screen. Use manually downloaded cache on the S3 bucket.
+$(PKG)_URL = $(PKG_MIRROR)/$(shell $(call ESCAPE_PKG,json_spirit))
+$(PKG)_DEPS := gcc boost
+
+define $(PKG)_UPDATE
+ echo 'TODO: write update script for $(PKG).' >&2;
+ echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+ mkdir '$(1).build'
+ cd '$(1).build' && \
+ cmake '$(1)' \
+ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_RELEASE_POSTFIX='' \
+ -DBoost_THREADAPI=win32 \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_apps=OFF \
+ -DBUILD_examples=OFF \
+ -DBUILD_global_tests=OFF \
+ -DBUILD_tools=OFF \
+ -DHAVE_MM_MALLOC_EXITCODE=0 \
+ -DHAVE_SSE4_1_EXTENSIONS_EXITCODE=0 \
+ -DHAVE_SSE3_EXTENSIONS_EXITCODE=0 \
+ -DHAVE_SSE2_EXTENSIONS_EXITCODE=0 \
+ -DHAVE_SSE_EXTENSIONS_EXITCODE=0
+ $(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1)' -j 1 VERBOSE=1
+ $(MAKE) -C '$(1).build' -j 1 install VERBOSE=1
+endef
+
+$(PKG)_BUILD_SHARED =