Port of libyaml

http://pyyaml.org/wiki/LibYAML

Ref #2682
This commit is contained in:
Ehmry - 2018-02-15 18:59:11 +01:00 committed by Christian Helmuth
parent 96579a72e0
commit 60eeddf639
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,2 @@
YAML_PORT_DIR := $(call select_from_ports,libyaml)
INC_DIR += $(YAML_PORT_DIR)/include/yaml

View File

@ -0,0 +1,15 @@
include $(REP_DIR)/lib/import/import-libyaml.mk
YAML_SRC_DIR := $(YAML_PORT_DIR)/src/lib/yaml/src
LIBS += libc
SRC_C += api.c reader.c scanner.c parser.c loader.c writer.c emitter.c dumper.c
CC_DEF += -DHAVE_CONFIG_H
CC_OPT += -Wno-unused-but-set-variable -Wno-unused-value
INC_DIR += $(YAML_SRC_DIR)
vpath %c $(YAML_SRC_DIR)

View File

@ -0,0 +1 @@
8ea4e59e4393072540b6a7a538b369689abec6f4

View File

@ -0,0 +1,23 @@
LICENSE = MIT
DOWNLOADS = libyaml.archive
VERSION = 0.1.7
URL(libyaml) := http://pyyaml.org/download/libyaml/yaml-$(VERSION).tar.gz
SHA(libyaml) := 3590cbf092ef4c71bc0a9b404c00a626b1e04dee
DIR(libyaml) := src/lib/yaml
DIRS := include/yaml
DIR_CONTENT(include/yaml) = src/lib/yaml/include/*.h
default: src/lib/yaml/src/config.h
src/lib/yaml/src/config.h: src/lib/yaml/config.h.in
@$(MSG_GENERATE)$(notdir $@)
$(VERBOSE)sed \
-e 's/undef YAML_VERSION_MAJOR/define YAML_VERSION_MAJOR 0/' \
-e 's/undef YAML_VERSION_MINOR/define YAML_VERSION_MINOR 1/' \
-e 's/undef YAML_VERSION_PATCH/define YAML_VERSION_PATCH 7/' \
-e 's/undef YAML_VERSION_STRING/define YAML_VERSION_STRING "$(VERSION)"/' \
$< > $@
src/lib/yaml/config.h.in: $(DOWNLOADS)