* [Buildroot] [PATCH v2 1/1] libpqxx: new package
@ 2016-07-28 21:44 James Knight
2016-07-30 13:43 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: James Knight @ 2016-07-28 21:44 UTC (permalink / raw)
To: buildroot
Signed-off-by: James Knight <james.knight@rockwellcollins.com>
---
Changes v1 -> v2:
- Only show package/comment when postgresql is enabled (suggested from
comments by Thomas Petazzoni).
- Explicitly set BSD-3c license (instead of just BSD; pointed out by
Thomas Petazzoni).
- Removed LIBPQXX_SOURCE as it matches default (pointed out by Thomas
Petazzoni).
---
package/Config.in | 1 +
package/libpqxx/Config.in | 13 +++++++++++++
package/libpqxx/libpqxx.hash | 4 ++++
package/libpqxx/libpqxx.mk | 16 ++++++++++++++++
4 files changed, 34 insertions(+)
create mode 100644 package/libpqxx/Config.in
create mode 100644 package/libpqxx/libpqxx.hash
create mode 100644 package/libpqxx/libpqxx.mk
diff --git a/package/Config.in b/package/Config.in
index 0eaeb1b..4b3630c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -898,6 +898,7 @@ menu "Database"
source "package/gdbm/Config.in"
source "package/kompexsqlite/Config.in"
source "package/leveldb/Config.in"
+ source "package/libpqxx/Config.in"
source "package/mongodb/Config.in"
source "package/mysql/Config.in"
source "package/postgresql/Config.in"
diff --git a/package/libpqxx/Config.in b/package/libpqxx/Config.in
new file mode 100644
index 0000000..a1f5cb5
--- /dev/null
+++ b/package/libpqxx/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LIBPQXX
+ bool "libpqxx"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_PACKAGE_POSTGRESQL
+ help
+ libpqxx is the official C++ client API for ?PostgreSQL, the
+ enterprise-strength open-source relational database.
+
+ http://pqxx.org/development/libpqxx/
+
+comment "libpqxx needs toolchain w/ C++ support"
+ depends on !BR2_INSTALL_LIBSTDCPP
+ depends on BR2_PACKAGE_POSTGRESQL
diff --git a/package/libpqxx/libpqxx.hash b/package/libpqxx/libpqxx.hash
new file mode 100644
index 0000000..65c50c6
--- /dev/null
+++ b/package/libpqxx/libpqxx.hash
@@ -0,0 +1,4 @@
+# From: http://pqxx.org/download/software/libpqxx/libpqxx-4.0.1.tar.gz.md5sum
+md5 6ea888b9ba85dd7cef1b182dc5f223a2 libpqxx-4.0.1.tar.gz
+# Locally computed after verifying md5sum:
+sha256 097ceda2797761ce517faa5bee186c883df1c407cb2aada613a16773afeedc38 libpqxx-4.0.1.tar.gz
diff --git a/package/libpqxx/libpqxx.mk b/package/libpqxx/libpqxx.mk
new file mode 100644
index 0000000..0587190
--- /dev/null
+++ b/package/libpqxx/libpqxx.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# libpqxx
+#
+################################################################################
+
+LIBPQXX_VERSION = 4.0.1
+LIBPQXX_SITE = http://pqxx.org/download/software/libpqxx
+LIBPQXX_INSTALL_STAGING = YES
+LIBPQXX_DEPENDENCIES = postgresql
+LIBPQXX_LICENSE = BSD-3c
+LIBPQXX_LICENSE_FILES = COPYING
+
+LIBPQXX_CONF_ENV += ac_cv_path_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config
+
+$(eval $(autotools-package))
--
2.8.4.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] libpqxx: new package
2016-07-28 21:44 [Buildroot] [PATCH v2 1/1] libpqxx: new package James Knight
@ 2016-07-30 13:43 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-30 13:43 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 28 Jul 2016 17:44:58 -0400, James Knight wrote:
> Signed-off-by: James Knight <james.knight@rockwellcollins.com>
> ---
> Changes v1 -> v2:
> - Only show package/comment when postgresql is enabled (suggested from
> comments by Thomas Petazzoni).
> - Explicitly set BSD-3c license (instead of just BSD; pointed out by
> Thomas Petazzoni).
> - Removed LIBPQXX_SOURCE as it matches default (pointed out by Thomas
> Petazzoni).
> ---
> package/Config.in | 1 +
> package/libpqxx/Config.in | 13 +++++++++++++
> package/libpqxx/libpqxx.hash | 4 ++++
> package/libpqxx/libpqxx.mk | 16 ++++++++++++++++
> 4 files changed, 34 insertions(+)
> create mode 100644 package/libpqxx/Config.in
> create mode 100644 package/libpqxx/libpqxx.hash
> create mode 100644 package/libpqxx/libpqxx.mk
Applied to master, 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:[~2016-07-30 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 21:44 [Buildroot] [PATCH v2 1/1] libpqxx: new package James Knight
2016-07-30 13:43 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox