mysql_client: fix deps and clean up configure args
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 26 Jan 2009 05:51:31 +0000 (05:51 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 26 Jan 2009 05:51:31 +0000 (05:51 -0000)
mysql client needs ncurses, readline and C++

package/database/mysql_client/Config.in
package/database/mysql_client/mysql_client.mk

index e13605801f701c384fe750e120d4ed31cc63597d..01cf71725f84c9e8423980a5196704f37866cddf 100644 (file)
@@ -1,4 +1,10 @@
 config BR2_PACKAGE_MYSQL_CLIENT
        bool "MySQL 5.1 client"
+       depends on BR2_INSTALL_LIBSTDCPP
+       select BR2_PACKAGE_NCURSES
+       select BR2_READLINE
        help
          MySQL client
+
+comment "Mysql client requires a toolchain with C++ support enabled"
+       depends on !BR2_INSTALL_LIBSTDCPP
index 2b26dfb136d40d67342e9368fdb77111e9707b63..18e3b15250ccbdd9c9f63058821c13abf71b2a05 100644 (file)
@@ -8,21 +8,18 @@ MYSQL_CLIENT_SOURCE = mysql-$(MYSQL_CLIENT_VERSION).tar.gz
 MYSQL_CLIENT_SITE = http://mirrors.24-7-solutions.net/pub/mysql/Downloads/MySQL-5.1
 MYSQL_CLIENT_INSTALL_TARGET = YES
 MYSQL_CLIENT_INSTALL_STAGING = YES
-MYSQL_CLIENT_DEPENDENCIES = uclibc readline
+MYSQL_CLIENT_DEPENDENCIES = uclibc readline ncurses
 
 MYSQL_CLIENT_CONF_ENV = ac_cv_sys_restartable_syscalls=yes
 MYSQL_CLIENT_CONF_OPT = \
-       --target=$(GNU_TARGET_NAME) \
-       --host=$(GNU_TARGET_NAME) \
-       --build=$(GNU_HOST_NAME) \
        --program-prefix="" \
-       --prefix=/usr \
        --without-ndb-binlog \
        --without-server \
        --without-docs \
        --without-man \
        --without-readline \
        --without-libedit \
+       --with-readline=$(STAGING_DIR)/usr \
        --with-low-memory \
        --enable-thread-safe-client \
        $(ENABLE_DEBUG)