* [Buildroot] [PATCH 1/1] libpqxx: new package
@ 2016-07-28 21:20 James Knight
2016-07-28 21:32 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: James Knight @ 2016-07-28 21:20 UTC (permalink / raw)
To: buildroot
Signed-off-by: James Knight <james.knight@rockwellcollins.com>
---
package/Config.in | 1 +
package/libpqxx/Config.in | 14 ++++++++++++++
package/libpqxx/libpqxx.hash | 4 ++++
package/libpqxx/libpqxx.mk | 17 +++++++++++++++++
4 files changed, 36 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 0f0c376..fb8c5ba 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..a4fd4a1
--- /dev/null
+++ b/package/libpqxx/Config.in
@@ -0,0 +1,14 @@
+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 postgresql and toolchain w/ C++ support"
+ depends on !BR2_INSTALL_LIBSTDCPP
+ depends on !BR2_PACKAGE_POSTGRESQL
+ depends on !BR2_STATIC_LIBS # postgresql depends on static
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..be81654
--- /dev/null
+++ b/package/libpqxx/libpqxx.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# libpqxx
+#
+################################################################################
+
+LIBPQXX_VERSION = 4.0.1
+LIBPQXX_SITE = http://pqxx.org/download/software/libpqxx
+LIBPQXX_SOURCE = libpqxx-$(LIBPQXX_VERSION).tar.gz
+LIBPQXX_INSTALL_STAGING = YES
+LIBPQXX_DEPENDENCIES = postgresql
+LIBPQXX_LICENSE = BSD
+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 1/1] libpqxx: new package
2016-07-28 21:20 [Buildroot] [PATCH 1/1] libpqxx: new package James Knight
@ 2016-07-28 21:32 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-28 21:32 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 28 Jul 2016 17:20:31 -0400, James Knight wrote:
> diff --git a/package/libpqxx/Config.in b/package/libpqxx/Config.in
> new file mode 100644
> index 0000000..a4fd4a1
> --- /dev/null
> +++ b/package/libpqxx/Config.in
> @@ -0,0 +1,14 @@
> +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 postgresql and toolchain w/ C++ support"
> + depends on !BR2_INSTALL_LIBSTDCPP
> + depends on !BR2_PACKAGE_POSTGRESQL
> + depends on !BR2_STATIC_LIBS # postgresql depends on static
I would make this comment only visible if postgresql is enabled, i.e:
comment "libpqxx needs postgresql and toolchain w/ C++ support"
depends on !BR2_INSTALL_LIBSTDCPP
depends on BR2_PACKAGE_POSTGRESQL
Indeed, to me it seems obvious for the user that if he wants a C++
client API for postgresql, then postgresql should be enabled first.
Otherwise, this package should be "select"-ing postgresql.
> +LIBPQXX_VERSION = 4.0.1
> +LIBPQXX_SITE = http://pqxx.org/download/software/libpqxx
> +LIBPQXX_SOURCE = libpqxx-$(LIBPQXX_VERSION).tar.gz
Not needed, this is the default.
> +LIBPQXX_INSTALL_STAGING = YES
> +LIBPQXX_DEPENDENCIES = postgresql
> +LIBPQXX_LICENSE = BSD
Please be more specific about the license: BSD-2c, BSD-3c, etc.
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-28 21:32 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:20 [Buildroot] [PATCH 1/1] libpqxx: new package James Knight
2016-07-28 21:32 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox