aboutsummaryrefslogtreecommitdiff
path: root/package/mysql_client
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-04-26 21:57:11 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-04-26 21:57:11 +0200
commit187f0a55323437e33f5a66ef670fe0e49f52bc45 (patch)
treec90a6c5afa2ae97c6c73d2e8ae0e64c195407665 /package/mysql_client
parent28200ca3f233480de4179e58099ba5c9f335087c (diff)
downloadbuildroot-187f0a55323437e33f5a66ef670fe0e49f52bc45.tar.gz
buildroot-187f0a55323437e33f5a66ef670fe0e49f52bc45.tar.bz2
package: get rid of database subdir
Not much point in a seperate subdir for only two packages. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
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 0000000000..f07fdb4ce1
--- /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 0000000000..44036531ec
--- /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 $@