SQLiteC++ offers an encapsulation around the native C APIs of SQLite, with a few intuitive and well documented C++ classes.
The library is only built statically, so there is no need to targetinstall anything. Based on a patch by Chetan Dayananda. Cc: Chetan Dayananda <[email protected]> Signed-off-by: Roland Hieber <[email protected]> --- rules/sqlitecpp.in | 11 +++++++++++ rules/sqlitecpp.make | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 rules/sqlitecpp.in create mode 100644 rules/sqlitecpp.make diff --git a/rules/sqlitecpp.in b/rules/sqlitecpp.in new file mode 100644 index 000000000000..e6a662337029 --- /dev/null +++ b/rules/sqlitecpp.in @@ -0,0 +1,11 @@ +## SECTION=system_libraries + +config SQLITECPP + bool + prompt "sqlitecpp" + select HOST_CMAKE + select SQLITE + select SQLITE_LOAD_EXTENSION + help + SQLiteC++ offers an encapsulation around the native C APIs of SQLite, + with a few intuitive and well documented C++ classes. diff --git a/rules/sqlitecpp.make b/rules/sqlitecpp.make new file mode 100644 index 000000000000..5d1b74d60c8e --- /dev/null +++ b/rules/sqlitecpp.make @@ -0,0 +1,39 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Chetan Dayananda <[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_SQLITECPP) += sqlitecpp + +# +# Paths and names +# +SQLITECPP_VERSION := 2.4.0 +SQLITECPP_MD5 := aa0da9aa79bd76bc09446de418b6be08 +SQLITECPP := sqlitecpp-$(SQLITECPP_VERSION) +SQLITECPP_SUFFIX := tar.gz +SQLITECPP_URL := https://github.com/SRombauts/SQLiteCpp/archive/$(SQLITECPP_VERSION).$(SQLITECPP_SUFFIX) +SQLITECPP_SOURCE := $(SRCDIR)/$(SQLITECPP).tar.gz +SQLITECPP_DIR := $(BUILDDIR)/$(SQLITECPP) +SQLITECPP_LICENSE := MIT + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SQLITECPP_CONF_TOOL := cmake +SQLITECPP_CONF_OPT := $(CROSS_CMAKE_USR) -DSQLITECPP_INTERNAL_SQLITE=OFF + +# +# No Target-Install stage because the package only builds a static lib. +# + +# vim: syntax=make -- 2.23.0 _______________________________________________ ptxdist mailing list [email protected]
