diff options
author | Russell Standish <rks@parallel.hpcoders.com.au> | 2014-08-20 03:02:58 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-11-08 23:57:55 (GMT) |
commit | 452dd1fd25a8e1a6451a66994e00564ae7673d81 (patch) | |
tree | d46826800b48bbeac1256853412178128d3e22e9 | |
parent | b2fcc7a4860f277da7ad9880277359f5117e2b8c (diff) | |
download | mxe-452dd1fd25a8e1a6451a66994e00564ae7673d81.zip mxe-452dd1fd25a8e1a6451a66994e00564ae7673d81.tar.gz mxe-452dd1fd25a8e1a6451a66994e00564ae7673d81.tar.bz2 |
Added json_spirit package
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/json_spirit.mk | 44 |
2 files changed, 48 insertions, 0 deletions
@@ -1534,6 +1534,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre> <td class="website"><a href="https://github.com/json-c/json-c/wiki">json-c</a></td> </tr> <tr> + <td class="package">json_spirit</td> + <td class="website"><a href="https://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented">json_spirit</a></td> + </tr> + <tr> <td class="package">lame</td> <td class="website"><a href="http://lame.sourceforge.net/">lame</a></td> </tr> 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 = |