summaryrefslogtreecommitdiffstats
path: root/extra/myodbc/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/myodbc/Pkgfile')
-rw-r--r--extra/myodbc/Pkgfile24
1 files changed, 20 insertions, 4 deletions
diff --git a/extra/myodbc/Pkgfile b/extra/myodbc/Pkgfile
index 8821cee92..3ba68a1e9 100644
--- a/extra/myodbc/Pkgfile
+++ b/extra/myodbc/Pkgfile
@@ -8,13 +8,29 @@
name=myodbc
version=5.1.8
release=1
-source=(http://mirror.switch.ch/mirror/mysql/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-$version.tar.gz )
+source=(http://mirror.switch.ch/mirror/mysql/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-$version.tar.gz
+ myodbc-64bit.patch
+ myodbc-add-mysys.patch
+ myodbc-my-free.patch
+ myodbc-shutdown.patch )
build () {
cd mysql-connector-odbc-$version
- [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc --with-unixODBC=/usr \
- --with-mysql-path=/usr --without-x --disable-gui --enable-shared \
- --disable-static
+
+ [ $NOEXTRACT -eq 1 ] || patch -p1 < $SRC/myodbc-64bit.patch
+ [ $NOEXTRACT -eq 1 ] || patch -p1 < $SRC/myodbc-add-mysys.patch
+ [ $NOEXTRACT -eq 1 ] || patch -p1 < $SRC/myodbc-my-free.patch
+ [ $NOEXTRACT -eq 1 ] || patch -p1 < $SRC/myodbc-shutdown.patch
+
+ [ $NOEXTRACT -eq 1 ] || CFLAGS=-DTHREAD LDFLAGS=-lmysqld ./configure --prefix=/usr --sysconfdir=/etc --with-unixODBC=/usr \
+ --with-mysql-path=/usr --without-samples --enable-thread-safe \
+ --without-x --without-qt --disable-gui --enable-shared \
+ --disable-static --disable-test
+
+# [ $NOEXTRACT -eq 1 ] || CFLAGS=-DTHREAD LDFLAGS=-lmysqld ./configure --prefix=/usr \
+# --sysconfdir=/etc --with-unixODBC=/usr \
+# --with-mysql-path=/usr --without-x --disable-gui --enable-shared \
+# --disable-static
make
make DESTDIR=$PKG install
}