From 452dd1fd25a8e1a6451a66994e00564ae7673d81 Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Wed, 20 Aug 2014 13:02:58 +1000 Subject: Added json_spirit package Signed-off-by: Timothy Gu --- index.html | 4 ++++ src/json_spirit.mk | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/json_spirit.mk diff --git a/index.html b/index.html index c8c0519..1525ffa 100644 --- a/index.html +++ b/index.html @@ -1534,6 +1534,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) json-c + json_spirit + json_spirit + + lame lame 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 = -- cgit v0.12