blob: 2e91192efe3000bd7ec13eccd3a718c833186ce0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# 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.53
release=1
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/mysql-$version.tar.gz \
http://nutyx.meticul.eu/files/patchs/$name/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
}
|