All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] kompexsqlite: new package
@ 2015-09-14 21:45 Gustavo Zacarias
  2015-09-19 12:20 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2015-09-14 21:45 UTC (permalink / raw
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Config.in                                  |  1 +
 ...kefile-use-autoconf-CXX-for-proper-builds.patch | 27 ++++++++++++++++++++++
 package/kompexsqlite/Config.in                     | 12 ++++++++++
 package/kompexsqlite/kompexsqlite.hash             |  2 ++
 package/kompexsqlite/kompexsqlite.mk               | 14 +++++++++++
 5 files changed, 56 insertions(+)
 create mode 100644 package/kompexsqlite/0001-Makefile-use-autoconf-CXX-for-proper-builds.patch
 create mode 100644 package/kompexsqlite/Config.in
 create mode 100644 package/kompexsqlite/kompexsqlite.hash
 create mode 100644 package/kompexsqlite/kompexsqlite.mk

diff --git a/package/Config.in b/package/Config.in
index eb6968c..5cd9f4d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -764,6 +764,7 @@ menu "Database"
 	source "package/berkeleydb/Config.in"
 	source "package/cppdb/Config.in"
 	source "package/gdbm/Config.in"
+	source "package/kompexsqlite/Config.in"
 	source "package/leveldb/Config.in"
 	source "package/mysql/Config.in"
 	source "package/postgresql/Config.in"
diff --git a/package/kompexsqlite/0001-Makefile-use-autoconf-CXX-for-proper-builds.patch b/package/kompexsqlite/0001-Makefile-use-autoconf-CXX-for-proper-builds.patch
new file mode 100644
index 0000000..408c100
--- /dev/null
+++ b/package/kompexsqlite/0001-Makefile-use-autoconf-CXX-for-proper-builds.patch
@@ -0,0 +1,27 @@
+From 769693d9ddf63b04dd4aad6cad080f3cee3f997e Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Date: Thu, 11 Jun 2015 14:08:38 -0300
+Subject: [PATCH] Makefile: use autoconf CXX for proper builds
+
+Status: applied upstream.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ Makefile.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.in b/Makefile.in
+index 91fb8b2..fe862cd 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -23,6 +23,7 @@ mandir = $(prefix)/share/man/man3
+ headerdir = $(prefix)/include/kompex
+ 
+ CC = @CC@
++CXX = @CXX@
+ CFLAGS = @CFLAGS@
+ CPPFLAGS = $(CFLAGS) @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+-- 
+2.3.6
+
diff --git a/package/kompexsqlite/Config.in b/package/kompexsqlite/Config.in
new file mode 100644
index 0000000..b6d7d7f
--- /dev/null
+++ b/package/kompexsqlite/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_KOMPEXSQLITE
+	bool "kompexsqlite"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on !BR2_STATIC_LIBS
+	help
+	  The Kompex SQLite Wrapper is an open source C++ wrapper
+	  library for SQLite.
+
+	  http://sqlitewrapper.kompex-online.com/index.php
+
+comment "kompexsqlite needs a toolchain w/ C++, dynamic library"
+	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
diff --git a/package/kompexsqlite/kompexsqlite.hash b/package/kompexsqlite/kompexsqlite.hash
new file mode 100644
index 0000000..3c94adf
--- /dev/null
+++ b/package/kompexsqlite/kompexsqlite.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	73bec94fe5dd3a24bd8668b3a131a84dbe39a992579eebab1236aa0e73b2c9cc	v1.10.12-1.tar.gz
diff --git a/package/kompexsqlite/kompexsqlite.mk b/package/kompexsqlite/kompexsqlite.mk
new file mode 100644
index 0000000..7f57680
--- /dev/null
+++ b/package/kompexsqlite/kompexsqlite.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# kompexsqlite
+#
+################################################################################
+
+KOMPEXSQLITE_VERSION = v1.10.12-1
+KOMPEXSQLITE_SOURCE = $(KOMPEXSQLITE_VERSION).tar.gz
+KOMPEXSQLITE_SITE = https://github.com/Aethelflaed/kompex-sqlite-wrapper/archive
+KOMPEXSQLITE_INSTALL_STAGING = YES
+KOMPEXSQLITE_LICENSE = LGPLv3+ (wrapper), Public Domain (bundled sqlite)
+KOMPEXSQLITE_LICENSE_FILES = LICENSE.txt
+
+$(eval $(autotools-package))
-- 
2.4.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] kompexsqlite: new package
  2015-09-14 21:45 [Buildroot] [PATCH] kompexsqlite: new package Gustavo Zacarias
@ 2015-09-19 12:20 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-09-19 12:20 UTC (permalink / raw
  To: buildroot

Dear Gustavo Zacarias,

On Mon, 14 Sep 2015 18:45:15 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  package/Config.in                                  |  1 +
>  ...kefile-use-autoconf-CXX-for-proper-builds.patch | 27 ++++++++++++++++++++++
>  package/kompexsqlite/Config.in                     | 12 ++++++++++
>  package/kompexsqlite/kompexsqlite.hash             |  2 ++
>  package/kompexsqlite/kompexsqlite.mk               | 14 +++++++++++
>  5 files changed, 56 insertions(+)
>  create mode 100644 package/kompexsqlite/0001-Makefile-use-autoconf-CXX-for-proper-builds.patch
>  create mode 100644 package/kompexsqlite/Config.in
>  create mode 100644 package/kompexsqlite/kompexsqlite.hash
>  create mode 100644 package/kompexsqlite/kompexsqlite.mk

I've applied, thanks!

One thing that I wasn't sure about: the location in "Databases", and
not somewhere under "Libraries". Because kompexsqlite is really only a
library. But it's true that the sqlite package is also under
"Databases" and even if it provides a sqlite3 command line tool, sqlite
is mainly useful as a library.

So I've kept kompexsqlite with the other databases packages for now. If
some people disagree, we can change it later.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-19 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14 21:45 [Buildroot] [PATCH] kompexsqlite: new package Gustavo Zacarias
2015-09-19 12:20 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.