summaryrefslogtreecommitdiff
path: root/databases/mysql-client
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2003-08-24 01:57:50 +0000
committertaca <taca@pkgsrc.org>2003-08-24 01:57:50 +0000
commitb98e6e1f6ab2c8b1df0917bdcbd43dd46e47dceb (patch)
treebcd63804f9f056cdd4fc7434053a60d444a237a0 /databases/mysql-client
parent935e9b748c3f30ab8f831f821409d0adb18949f7 (diff)
downloadpkgsrc-b98e6e1f6ab2c8b1df0917bdcbd43dd46e47dceb.tar.gz
Introduce MYSQL_CHARSET and MYSQL_EXTRA_CHARSET.
MYSQL_CHARSET is default charracter set of mysql, default is "latin1". MYSQL_EXTRA_CHARSET is additional charsets to be compiled in mysql, default is "all". Fix PR pkg/22560 by myself, OKed by wiz@.
Diffstat (limited to 'databases/mysql-client')
-rw-r--r--databases/mysql-client/Makefile.common11
1 files changed, 10 insertions, 1 deletions
diff --git a/databases/mysql-client/Makefile.common b/databases/mysql-client/Makefile.common
index dcaad9c77c4..f38ae9b7ae6 100644
--- a/databases/mysql-client/Makefile.common
+++ b/databases/mysql-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.16 2003/07/17 21:28:22 grant Exp $
+# $NetBSD: Makefile.common,v 1.17 2003/08/24 01:57:50 taca Exp $
DISTNAME= mysql-3.23.49
CATEGORIES= databases
@@ -21,6 +21,12 @@ MYSQL_USER?= mysql
MYSQL_GROUP?= mysql
MYSQL_DATADIR?= /var/mysql
+# MYSQL_CHARSET default character set
+# MYSQL_EXTRA_CHARSET additonal character set to be compiled in.
+#
+MYSQL_CHARSET?= latin1
+MYSQL_EXTRA_CHARSET?= all
+
USE_BUILDLINK2= # defined
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR}
@@ -38,6 +44,9 @@ CONFIGURE_ARGS+= --without-debug
CONFIGURE_ARGS+= --without-bench
CONFIGURE_ARGS+= --with-low-memory
+CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET}
+CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET}
+
CPPFLAGS+= -Dunix
# force HAVE_CURSES_H on Solaris since the configure script is broken