package/php: add unixodbc support

[Thomas: fix indentation.]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2015-03-06 17:49:43 +01:00 committed by Thomas Petazzoni
parent f33fe4886e
commit c6ae88084c
2 changed files with 10 additions and 0 deletions

View file

@ -159,6 +159,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"

View file

@ -176,6 +176,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