All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH next 1/3] package/unixodbc: new package
@ 2015-02-28 10:58 Bernd Kuhls
  2015-02-28 10:58 ` [Buildroot] [PATCH next 2/3] package/qt: enable unixodbc support Bernd Kuhls
  2015-02-28 10:58 ` [Buildroot] [PATCH next 3/3] package/php: add " Bernd Kuhls
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2015-02-28 10:58 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in              |    1 +
 package/unixodbc/Config.in     |    7 +++++++
 package/unixodbc/unixodbc.hash |    2 ++
 package/unixodbc/unixodbc.mk   |   26 ++++++++++++++++++++++++++
 4 files changed, 36 insertions(+)
 create mode 100644 package/unixodbc/Config.in
 create mode 100644 package/unixodbc/unixodbc.hash
 create mode 100644 package/unixodbc/unixodbc.mk

diff --git a/package/Config.in b/package/Config.in
index 6af92e8..f31c959 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -664,6 +664,7 @@ menu "Database"
 	source "package/redis/Config.in"
 	source "package/sqlcipher/Config.in"
 	source "package/sqlite/Config.in"
+	source "package/unixodbc/Config.in"
 endmenu
 
 menu "Filesystem"
diff --git a/package/unixodbc/Config.in b/package/unixodbc/Config.in
new file mode 100644
index 0000000..c23e0a5
--- /dev/null
+++ b/package/unixodbc/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_UNIXODBC
+	bool "unixodbc"
+	help
+	  The unixODBC Project goals are to develop and promote unixODBC
+	  to be the definitive standard for ODBC on non MS Windows platforms.
+
+	  http://www.unixodbc.org
diff --git a/package/unixodbc/unixodbc.hash b/package/unixodbc/unixodbc.hash
new file mode 100644
index 0000000..a5c2d11
--- /dev/null
+++ b/package/unixodbc/unixodbc.hash
@@ -0,0 +1,2 @@
+# From ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.2.tar.gz.md5
+md5	5e4528851eda5d3d4aed249b669bd05b	unixODBC-2.3.2.tar.gz
diff --git a/package/unixodbc/unixodbc.mk b/package/unixodbc/unixodbc.mk
new file mode 100644
index 0000000..bd4db70
--- /dev/null
+++ b/package/unixodbc/unixodbc.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# unixodbc
+#
+################################################################################
+
+UNIXODBC_VERSION = 2.3.2
+UNIXODBC_SOURCE = unixODBC-$(UNIXODBC_VERSION).tar.gz
+UNIXODBC_SITE = ftp://ftp.unixodbc.org/pub/unixODBC
+UNIXODBC_INSTALL_STAGING = YES
+UNIXODBC_LICENSE = LGPLv2.1+
+UNIXODBC_LICENSE_FILES = COPYING
+
+UNIXODBC_CONF_OPTS += --enable-drivers --enable-driver-conf
+
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+	UNIXODBC_CONF_OPTS += --enable-iconv
+	UNIXODBC_DEPENDENCIES += libiconv
+endif
+
+ifeq ($(BR2_PACKAGE_READLINE),y)
+	UNIXODBC_CONF_OPTS += --enable-readline
+	UNIXODBC_DEPENDENCIES += readline
+endif
+
+$(eval $(autotools-package))
-- 
1.7.10.4

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

* [Buildroot] [PATCH next 2/3] package/qt: enable unixodbc support
  2015-02-28 10:58 [Buildroot] [PATCH next 1/3] package/unixodbc: new package Bernd Kuhls
@ 2015-02-28 10:58 ` Bernd Kuhls
  2015-02-28 10:58 ` [Buildroot] [PATCH next 3/3] package/php: add " Bernd Kuhls
  1 sibling, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2015-02-28 10:58 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/qt/Config.sql.in |    2 +-
 package/qt/qt.mk         |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/qt/Config.sql.in b/package/qt/Config.sql.in
index fd62657..81337a1 100644
--- a/package/qt/Config.sql.in
+++ b/package/qt/Config.sql.in
@@ -23,7 +23,7 @@ config BR2_PACKAGE_QT_IBASE
 
 config BR2_PACKAGE_QT_ODBC
 	bool "ODBC Driver"
-	depends on BROKEN # libodbc not in BR
+	select BR2_PACKAGE_UNIXODBC
 	help
 	  Build ODBC driver
 	  If unsure, say n.
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index 9ea676c..aedc2ce 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -361,6 +361,7 @@ QT_DEPENDENCIES += mysql
 endif
 ifeq ($(BR2_PACKAGE_QT_ODBC),y)
 QT_CONFIGURE_OPTS += -qt-sql-odbc
+QT_DEPENDENCIES += unixodbc
 endif
 ifeq ($(BR2_PACKAGE_QT_PSQL),y)
 QT_CONFIGURE_OPTS += -qt-sql-psql
-- 
1.7.10.4

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

* [Buildroot] [PATCH next 3/3] package/php: add unixodbc support
  2015-02-28 10:58 [Buildroot] [PATCH next 1/3] package/unixodbc: new package Bernd Kuhls
  2015-02-28 10:58 ` [Buildroot] [PATCH next 2/3] package/qt: enable unixodbc support Bernd Kuhls
@ 2015-02-28 10:58 ` Bernd Kuhls
  1 sibling, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2015-02-28 10:58 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/php/Config.ext |    6 ++++++
 package/php/php.mk     |    4 ++++
 2 files changed, 10 insertions(+)

diff --git a/package/php/Config.ext b/package/php/Config.ext
index 2b1e615..466f3f1 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -160,6 +160,12 @@ config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
 	help
 	  SQLite3 driver for PDO
 
+config BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC
+	bool "unixODBC"
+	select BR2_PACKAGE_UNIXODBC
+	help
+	  unixODBC driver for PDO
+
 endif
 
 comment "Human language and character encoding support"
diff --git a/package/php/php.mk b/package/php/php.mk
index dd52508..054fdc7 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -174,6 +174,10 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y)
 	PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr
 	PHP_DEPENDENCIES += postgresql
 endif
+ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC),y)
+	PHP_CONF_OPTS += --with-pdo-odbc=unixODBC,$(STAGING_DIR)/usr
+	PHP_DEPENDENCIES += unixodbc
+endif
 endif
 
 ### Use external PCRE if it's available
-- 
1.7.10.4

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

end of thread, other threads:[~2015-02-28 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-28 10:58 [Buildroot] [PATCH next 1/3] package/unixodbc: new package Bernd Kuhls
2015-02-28 10:58 ` [Buildroot] [PATCH next 2/3] package/qt: enable unixodbc support Bernd Kuhls
2015-02-28 10:58 ` [Buildroot] [PATCH next 3/3] package/php: add " Bernd Kuhls

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.