Adds yaml-cpp

This commit is contained in:
Nick Overdijk 2016-04-27 17:50:44 +02:00 committed by Boris Nagaev
parent a903d59466
commit 38d5c27896
2 changed files with 24 additions and 0 deletions

View File

@ -2741,6 +2741,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">xz</td>
<td class="website"><a href="http://tukaani.org/xz/">XZ</a></td>
</tr>
<tr>
<td class="package">yaml-cpp</td>
<td class="website"><a href="https://github.com/jbeder/yaml-cpp">yaml-cpp</a></td>
</tr>
<tr>
<td class="package">yasm</td>
<td class="website"><a href="http://yasm.tortall.net//">Yasm</a></td>

20
src/yaml-cpp.mk Normal file
View File

@ -0,0 +1,20 @@
# This file is part of MXE.
# See index.html for further information.
PKG := yaml-cpp
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.5.3
$(PKG)_CHECKSUM := ac50a27a201d16dc69a881b80ad39a7be66c4d755eda1f76c3a68781b922af8f
$(PKG)_SUBDIR := $(PKG)-release-$($(PKG)_VERSION)
$(PKG)_FILE := release-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/jbeder/yaml-cpp/archive/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_BUILD
cd '$(1)' && cmake \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON)
$(MAKE) -C '$(1)' -j $(JOBS) VERBOSE=1
$(MAKE) -C '$(1)' -j $(JOBS) install
endef