summaryrefslogtreecommitdiff
path: root/package/mysql_client
diff options
context:
space:
mode:
Diffstat (limited to 'package/mysql_client')
-rw-r--r--package/mysql_client/Config.in10
-rw-r--r--package/mysql_client/mysql_client.mk31
2 files changed, 41 insertions, 0 deletions
diff --git a/package/mysql_client/Config.in b/package/mysql_client/Config.in
new file mode 100644
index 000000000..f07fdb4ce
--- /dev/null
+++ b/package/mysql_client/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_MYSQL_CLIENT
+ bool "MySQL client"
+ depends on BR2_INSTALL_LIBSTDCPP
+ select BR2_PACKAGE_NCURSES
+ select BR2_PACKAGE_READLINE
+ help
+ MySQL client
+
+comment "Mysql client requires a toolchain with C++ support enabled"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/mysql_client/mysql_client.mk b/package/mysql_client/mysql_client.mk
new file mode 100644
index 000000000..44036531e
--- /dev/null
+++ b/package/mysql_client/mysql_client.mk
@@ -0,0 +1,31 @@
+#############################################################
+#
+# MySQL 5.1 Client
+#
+#############################################################
+MYSQL_CLIENT_VERSION = 5.1.23-rc
+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 = readline ncurses
+
+MYSQL_CLIENT_CONF_ENV = ac_cv_sys_restartable_syscalls=yes
+MYSQL_CLIENT_CONF_OPT = \
+ --program-prefix="" \
+ --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)
+
+$(eval $(call AUTOTARGETS,package,mysql_client))
+
+$(MYSQL_CLIENT_HOOK_POST_INSTALL):
+ rm -rf $(TARGET_DIR)/usr/mysql-test $(TARGET_DIR)/usr/sql-bench
+ touch $@