mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 10:01:57 +00:00
parent
96579a72e0
commit
60eeddf639
2
repos/libports/lib/import/import-libyaml.mk
Normal file
2
repos/libports/lib/import/import-libyaml.mk
Normal file
@ -0,0 +1,2 @@
|
||||
YAML_PORT_DIR := $(call select_from_ports,libyaml)
|
||||
INC_DIR += $(YAML_PORT_DIR)/include/yaml
|
15
repos/libports/lib/mk/libyaml.mk
Normal file
15
repos/libports/lib/mk/libyaml.mk
Normal 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)
|
1
repos/libports/ports/libyaml.hash
Normal file
1
repos/libports/ports/libyaml.hash
Normal file
@ -0,0 +1 @@
|
||||
8ea4e59e4393072540b6a7a538b369689abec6f4
|
23
repos/libports/ports/libyaml.port
Normal file
23
repos/libports/ports/libyaml.port
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user