tcl: enable postgresql support
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 30 Mar 2016 16:14:10 +0000 (17:14 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Mar 2016 17:28:59 +0000 (19:28 +0200)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/tcl/tcl.mk

index 8ac6644c1113e8c5b9467c8281feafc1198c3609..a1153c72314cf746505772d0eaf16c021406b4b4 100644 (file)
@@ -36,7 +36,7 @@ define TCL_REMOVE_PACKAGES
        rm -fr $(@D)/pkgs/sqlite3* \
                $(if $(BR2_PACKAGE_MYSQL),,$(@D)/pkgs/tdbcmysql*) \
                $(@D)/pkgs/tdbcodbc* \
-               $(@D)/pkgs/tdbcpostgres* \
+               $(if $(BR2_PACKAGE_POSTGRESQL),,$(@D)/pkgs/tdbcpostgres*) \
                $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*)
 endef
 TCL_PRE_CONFIGURE_HOOKS += TCL_REMOVE_PACKAGES
@@ -73,7 +73,8 @@ endef
 TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA
 
 TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \
-       $(if $(BR2_PACKAGE_MYSQL),mysql)
+       $(if $(BR2_PACKAGE_MYSQL),mysql) \
+       $(if $(BR2_PACKAGE_POSTGRESQL),postgresql)
 HOST_TCL_DEPENDENCIES =
 
 $(eval $(autotools-package))