[3/4] libodb: new package

Message ID 20171228192721.18494-4-Adamduskett@outlook.com
State Changes Requested
Headers show
Series
  • ODB: C++ Object-Relational Mapping (ORM): New packages.
Related show

Commit Message

Adam Duskett Dec. 28, 2017, 7:27 p.m.
This package contains the common ODB runtime library. Every application that
includes code generated by the ODB compiler will need to link to this library.

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/libodb/Config.in   | 12 ++++++++++++
 package/libodb/libodb.hash |  6 ++++++
 package/libodb/libodb.mk   | 16 ++++++++++++++++
 5 files changed, 36 insertions(+)
 create mode 100644 package/libodb/Config.in
 create mode 100644 package/libodb/libodb.hash
 create mode 100644 package/libodb/libodb.mk

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index f9e25f853c..ca28d0be50 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -44,6 +44,7 @@  F:	package/gstreamer1/gst1-vaapi/
 F:	package/imx-usb-loader/
 F:	package/janus-gateway/
 F:	package/libcutl/
+F:	package/libodb/
 F:	package/libressl/
 F:	package/libselinux/
 F:	package/libsemanage/
diff --git a/package/Config.in b/package/Config.in
index bd39a374f0..c7b80af455 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1484,6 +1484,7 @@  menu "Other"
 	source "package/libloki/Config.in"
 	source "package/libnpth/Config.in"
 	source "package/libnspr/Config.in"
+	source "package/libodb/Config.in"
 	source "package/libpfm4/Config.in"
 	source "package/libplatform/Config.in"
 	source "package/libplist/Config.in"
diff --git a/package/libodb/Config.in b/package/libodb/Config.in
new file mode 100644
index 0000000000..d5481453df
--- /dev/null
+++ b/package/libodb/Config.in
@@ -0,0 +1,13 @@ 
+config BR2_PACKAGE_LIBODB
+	bool "libodb"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  This package contains the common ODB runtime library. Every
+	  application that includes code generated by the ODB compiler
+	  will need to link to this library.
+
+	  https://www.codesynthesis.com/products/odb/
+
+comment "libodb needs a toolchain w/ C++, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libodb/libodb.hash b/package/libodb/libodb.hash
new file mode 100644
index 0000000000..cea5b9eda2
--- /dev/null
+++ b/package/libodb/libodb.hash
@@ -0,0 +1,6 @@ 
+# From https://www.codesynthesis.com/projects/libcutl/
+sha1	42bd2a8023e338e004711e755eb30bd122b844a6	libodb-2.4.0.tar.bz2
+
+# Locally Computed
+sha256	66a1bb4e8bb6ef60cc79334f8028c4d4de98d87f2ff6f8123b4cfb7751ce0007	libodb-2.4.0.tar.bz2
+sha256	841105a470fc283851c63941510ffd403c726d1910b688f7df95914ab8b1b5a3	LICENSE
diff --git a/package/libodb/libodb.mk b/package/libodb/libodb.mk
new file mode 100644
index 0000000000..6aebd14ce9
--- /dev/null
+++ b/package/libodb/libodb.mk
@@ -0,0 +1,16 @@ 
+################################################################################
+#
+# libodb
+#
+################################################################################
+
+LIBODB_VERSION_MAJOR = 2.4
+LIBODB_VERSION = $(LIBODB_VERSION_MAJOR).0
+LIBODB_SOURCE = libodb-$(LIBODB_VERSION).tar.bz2
+LIBODB_SITE = https://www.codesynthesis.com/download/odb/$(LIBODB_VERSION_MAJOR)
+LIBODB_INSTALL_STAGING = YES
+LIBODB_LICENSE = MIT
+LIBODB_LICENSE_FILES = LICENSE
+LIBODB_DEPENDENCIES = host-odb
+
+$(eval $(autotools-package))