genode/repos/libports/ports/libyaml.port

24 lines
780 B
Plaintext
Raw Normal View History

LICENSE = MIT
DOWNLOADS = libyaml.archive
VERSION = 0.1.7
URL(libyaml) := http://pyyaml.org/download/libyaml/yaml-$(VERSION).tar.gz
SHA(libyaml) := 8088e457264a98ba451a90b8661fcb4f9d6f478f7265d48322a196cec2480729
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)