Signed-off-by: Florian Bäuerle <[email protected]> --- rules/jsoncpp.in | 10 ++++++++ rules/jsoncpp.make | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 rules/jsoncpp.in create mode 100644 rules/jsoncpp.make
diff --git a/rules/jsoncpp.in b/rules/jsoncpp.in new file mode 100644 index 000000000..c32e2d91c --- /dev/null +++ b/rules/jsoncpp.in @@ -0,0 +1,10 @@ +## SECTION=system_libraries + +config JSONCPP + tristate + prompt "jsoncpp" + help + JsonCpp is a C++ library that allows manipulating JSON values, + including serialization and deserialization to and from strings. It + can also preserve existing comment in unserialization/serialization + steps, making it a convenient format to store user input files. diff --git a/rules/jsoncpp.make b/rules/jsoncpp.make new file mode 100644 index 000000000..99f5053f6 --- /dev/null +++ b/rules/jsoncpp.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2009 by Michael Olbrich <[email protected]> +# 2019 by Florian Baeuerle <[email protected]> +# +# 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_JSONCPP) += jsoncpp + +# +# Paths and names +# +JSONCPP_VERSION := 1.8.4 +JSONCPP_MD5 := fa47a3ab6b381869b6a5f20811198662 +JSONCPP := jsoncpp-$(JSONCPP_VERSION) +JSONCPP_SUFFIX := tar.gz + +JSONCPP_URL := https://github.com/open-source-parsers/jsoncpp/archive/$(JSONCPP_VERSION).tar.gz +JSONCPP_SOURCE := $(SRCDIR)/jsoncpp-src-$(JSONCPP_VERSION).$(JSONCPP_SUFFIX) +JSONCPP_DIR := $(BUILDDIR)/$(JSONCPP) +JSONCPP_LICENSE := MIT +JSONCPP_LICENSE_FILES := file://LICENSE;md5=fa2a23dd1dc6c139f35105379d76df2b + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +JSONCPP_CONF_TOOL := meson +JSONCPP_CONF_OPT := \ + $(CROSS_MESON_USR) \ + --buildtype=release \ + --default-library=shared + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/jsoncpp.targetinstall: + @$(call targetinfo) + + @$(call install_init, jsoncpp) + @$(call install_fixup, jsoncpp,PRIORITY,optional) + @$(call install_fixup, jsoncpp,SECTION,base) + @$(call install_fixup, jsoncpp,AUTHOR,"Florian Baeuerle <[email protected]>") + @$(call install_fixup, jsoncpp,DESCRIPTION,missing) + + @$(call install_lib, jsoncpp, 0, 0, 0644, libjsoncpp) + @$(call install_finish, jsoncpp) + + @$(call touch) -- 2.21.0 _______________________________________________ ptxdist mailing list [email protected]
