tcl: enable mysql support
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 30 Mar 2016 16:14:09 +0000 (17:14 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Mar 2016 17:28:54 +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 817630a0447717fb82044fe38c86346fff09d031..8ac6644c1113e8c5b9467c8281feafc1198c3609 100644 (file)
@@ -34,7 +34,7 @@ HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES
 # We remove the bundled sqlite as we prefer to not use bundled stuff at all.
 define TCL_REMOVE_PACKAGES
        rm -fr $(@D)/pkgs/sqlite3* \
-               $(@D)/pkgs/tdbcmysql* \
+               $(if $(BR2_PACKAGE_MYSQL),,$(@D)/pkgs/tdbcmysql*) \
                $(@D)/pkgs/tdbcodbc* \
                $(@D)/pkgs/tdbcpostgres* \
                $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*)
@@ -72,7 +72,8 @@ define TCL_REMOVE_EXTRA
 endef
 TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA
 
-TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite)
+TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \
+       $(if $(BR2_PACKAGE_MYSQL),mysql)
 HOST_TCL_DEPENDENCIES =
 
 $(eval $(autotools-package))