blob: 3da21da1aa867c92cc73c42373af8124dcc6b3ab (
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
51
52
53
54
55
|
# Description: Librairie de MySQL
# URL: http://www.mysql.com
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
name=libmysql
version=5.1.55
release=2
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/mysql-$version.tar.gz )
build () {
CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer"
CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti"
cd mysql-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/srv/mysql \
--enable-assembler \
--enable-thread-safe-client \
--enable-local-infile \
--with-unix-socket-path=/var/run/mysql/mysql.sock \
--with-extra-charsets=all \
--with-berkeley-db \
--without-debug \
--without-readline \
--without-docs \
--without-bench
for dir in include strings \
mysys dbug storage regex extra vio sql; do
pushd $dir
make -j2
popd
done
for dir in libmysql libmysql_r libmysqld; do
pushd $dir
make link_sources
make -j2
make DESTDIR=$PKG install
popd
done
cd include
make DESTDIR=$PKG install
install -m644 *.h $PKG/usr/include/mysql
cd ../scripts
make mysql_config
install -D -m755 mysql_config $PKG/usr/bin/mysql_config
ln -sf mysql/libmysqlclient.so.16 $PKG/usr/lib/libmysqlclient.so.16
ln -sf libmysqlclient.so.16 $PKG/usr/lib/libmysqlclient.so
ln -sf libmysqlclient.so.16 $PKG/usr/lib/libmysqlclient.so.1
ln -sf mysql/libmysqlclient_r.so.16 $PKG/usr/lib/libmysqlclient_r.so.16
ln -sf libmysqlclient_r.so.16 $PKG/usr/lib/libmysqlclient_r.so
ln -sf libmysqlclient_r.so.16 $PKG/usr/lib/libmysqlclient_r.so.1
}
|