diff options
author | Pavel Vatagin <pavelvat@gmail.com> | 2015-08-03 17:11:27 (GMT) |
---|---|---|
committer | Pavel Vatagin <pavelvat@gmail.com> | 2015-08-03 17:11:27 (GMT) |
commit | df2ae726b15ddd537b13b7dc6e34ad6f33c972aa (patch) | |
tree | 7ca7ffa8c04bfb60d45d5e11ed774fe27e354681 /src/jsoncpp.mk | |
parent | 6dbd755d1bcde3d3eb6e4bc610e767b045f345eb (diff) | |
download | mxe-df2ae726b15ddd537b13b7dc6e34ad6f33c972aa.zip mxe-df2ae726b15ddd537b13b7dc6e34ad6f33c972aa.tar.gz mxe-df2ae726b15ddd537b13b7dc6e34ad6f33c972aa.tar.bz2 |
add package jsoncpp
Diffstat (limited to 'src/jsoncpp.mk')
-rw-r--r-- | src/jsoncpp.mk | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/jsoncpp.mk b/src/jsoncpp.mk new file mode 100644 index 0000000..26c0523 --- /dev/null +++ b/src/jsoncpp.mk @@ -0,0 +1,28 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := jsoncpp +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.6.5 +$(PKG)_CHECKSUM := a8354732489a4e3bf95ba801a300032e731b5aa8 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/open-source-parsers/jsoncpp/archive/$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://github.com/open-source-parsers/jsoncpp/archive/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/"\.tar.*,\1,p' | \ + sort | uniq | \ + head -1 +endef + +define $(PKG)_BUILD + mkdir '$(1)/build' + cd '$(1)/build' && cmake .. \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ + -DBUILD_STATIC_LIBS=$(if $(BUILD_STATIC),true,false) \ + -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),false,true) + $(MAKE) -C '$(1)/build' -j '$(JOBS)' install +endef |