summaryrefslogtreecommitdiffstats
path: root/extra/mysqlclient/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-11 21:36:45 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-11 21:36:45 +0200
commit0f8f62193e3527eec1b855b3538830f4da5850b4 (patch)
tree0e672fcb6e92dc91919c88f0a325111b77bfc1c0 /extra/mysqlclient/Pkgfile
parent7b02100636047cb04b26346aafff821b1534ac5d (diff)
downloadnutyx-pakxe-0f8f62193e3527eec1b855b3538830f4da5850b4.tar.gz
nutyx-pakxe-0f8f62193e3527eec1b855b3538830f4da5850b4.tar.bz2
nutyx-pakxe-0f8f62193e3527eec1b855b3538830f4da5850b4.tar.xz
nutyx-pakxe-0f8f62193e3527eec1b855b3538830f4da5850b4.zip
Ajout de mysqlclient#5.1.36-1
Diffstat (limited to 'extra/mysqlclient/Pkgfile')
-rw-r--r--extra/mysqlclient/Pkgfile49
1 files changed, 49 insertions, 0 deletions
diff --git a/extra/mysqlclient/Pkgfile b/extra/mysqlclient/Pkgfile
new file mode 100644
index 000000000..5822f477f
--- /dev/null
+++ b/extra/mysqlclient/Pkgfile
@@ -0,0 +1,49 @@
+# Description: Client MySQL
+# URL: http://www.mysql.com
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: libmysql
+
+name=mysqlclient
+version=5.1.36
+release=1
+source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/mysql-$version.tar.gz \
+ mysql-fix-libs.patch)
+
+build () {
+ cd mysql-$version
+ patch -Np1 -i ../mysql-fix-libs.patch
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/sbin \
+ --localstatedir=/srv/mysql \
+ --enable-thread-safe-client \
+ --enable-local-infile \
+ --with-extra-charsets=all \
+ --with-berkeley-db \
+ --without-debug \
+ --without-readline \
+ --without-docs \
+ --without-bench \
+ --with-libwrap
+
+ pushd include
+ make -j2
+ popd
+ pushd libmysql
+ make link_sources get_password.lo
+ popd
+ for i in strings regex mysys dbug extra
+ do pushd $i
+ make
+ popd
+ done
+ cd client
+ sed -i -e \
+'s|\$(top_builddir)/libmysql/libmysqlclient.la|/usr/lib/mysql/libmysqlclient.so|g' \
+Makefile
+ make link_sources
+ make
+ make DESTDIR=$PKG install
+# rm -r $PKG/usr/lib
+}