Skip to content
Snippets Groups Projects
Commit bf184a97 authored by Tristan Matthews's avatar Tristan Matthews Committed by Guillaume Roguez
Browse files

contrib: add yaml-cpp

Needs some headers from boost.

Change-Id: Ib5d6a6b7b90be25b867a032ee1584529a376cc77
parent 6565dc4c
No related branches found
No related tags found
No related merge requests found
3c6928684d603815c016d663af36be94507f2cccf167d6d8d7cd7dea3ea5f73ec88d62952a2b5d11796e40132857afcbbacd9eafd688f2dc11d0c339caf2e013 yaml-cpp-0.5.1.tar.gz
# YAML
YAML_CPP_VERSION := 0.5.1
YAML_CPP_URL := http://yaml-cpp.googlecode.com/files/yaml-cpp-$(YAML_CPP_VERSION).tar.gz
PKGS += yaml-cpp
ifeq ($(call need_pkg,'yaml-cpp'),)
PKGS_FOUND += yaml-cpp
endif
DEPS_yaml-cpp = boost-headers $(DEPS_boost-headers)
YAML_CPP_CMAKECONF := -DBUILD_STATIC:BOOL=ON \
-DBUILD_SHARED:BOOL=OFF \
-DBoost_INCLUDE_DIR=../ \
-DBUILD_SHARED_LIBS:BOOL=OFF
$(TARBALLS)/yaml-cpp-$(YAML_CPP_VERSION).tar.gz:
$(call download,$(YAML_CPP_URL))
.sum-yaml-cpp: yaml-cpp-$(YAML_CPP_VERSION).tar.gz
yaml-cpp: yaml-cpp-$(YAML_CPP_VERSION).tar.gz .sum-yaml-cpp
$(UNPACK)
$(MOVE)
.yaml-cpp: yaml-cpp toolchain.cmake
cd $< && $(HOSTVARS) $(CMAKE) . $(YAML_CPP_CMAKECONF)
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment