Signed-off-by: Bastian Stender <b...@pengutronix.de> --- patches/libyaml-0.1.7/autogen.sh | 1 + rules/libyaml.in | 7 +++++ rules/libyaml.make | 57 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 120000 patches/libyaml-0.1.7/autogen.sh create mode 100644 rules/libyaml.in create mode 100644 rules/libyaml.make
diff --git a/patches/libyaml-0.1.7/autogen.sh b/patches/libyaml-0.1.7/autogen.sh new file mode 120000 index 000000000..9f8a4cb7d --- /dev/null +++ b/patches/libyaml-0.1.7/autogen.sh @@ -0,0 +1 @@ +../autogen.sh \ No newline at end of file diff --git a/rules/libyaml.in b/rules/libyaml.in new file mode 100644 index 000000000..c56f31cb4 --- /dev/null +++ b/rules/libyaml.in @@ -0,0 +1,7 @@ +## SECTION=system_libraries + +config LIBYAML + tristate + prompt "libyaml" + help + A C library for parsing and emitting YAML. diff --git a/rules/libyaml.make b/rules/libyaml.make new file mode 100644 index 000000000..98675723e --- /dev/null +++ b/rules/libyaml.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Bastian Stender <b...@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBYAML) += libyaml + +# +# Paths and names +# +LIBYAML_VERSION := 0.1.7 +LIBYAML_MD5 := c966bdf434286e4f618d9ae8a5e8db97 +LIBYAML := libyaml-$(LIBYAML_VERSION) +LIBYAML_SUFFIX := tar.gz +LIBYAML_URL := https://github.com/yaml/libyaml/archive/$(LIBYAML_VERSION).$(LIBYAML_SUFFIX) +LIBYAML_SOURCE := $(SRCDIR)/$(LIBYAML).$(LIBYAML_SUFFIX) +LIBYAML_DIR := $(BUILDDIR)/$(LIBYAML) +LIBYAML_LICENSE := MIT + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +LIBYAML_CONF_TOOL := autoconf +LIBYAML_CONF_OPT := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libyaml.targetinstall: + @$(call targetinfo) + + @$(call install_init, libyaml) + @$(call install_fixup, libyaml, PRIORITY, optional) + @$(call install_fixup, libyaml, SECTION, base) + @$(call install_fixup, libyaml, AUTHOR, "Bastian Stender <b...@pengutronix.de>") + @$(call install_fixup, libyaml, DESCRIPTION, missing) + + @$(call install_lib, libyaml, 0, 0, 0644, libyaml-0) + + @$(call install_finish, libyaml) + + @$(call touch) + +# vim: syntax=make -- 2.15.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de