summaryrefslogtreecommitdiffstats
path: root/extra/myodbc/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2011-05-05 10:12:28 +0200
committertnut <tnut at nutyx dot com>2011-05-05 10:12:28 +0200
commit813285ad26660212791e7a68e0f5ec4203ac46ad (patch)
treec3ae40c9be101d75cb12e7a3b390917fdfee4f81 /extra/myodbc/Pkgfile
parent1de0c182c9368a85c49bffa159311db506777f20 (diff)
parent3a2975052e2e4750117b0bcfc3b954999c35c1f7 (diff)
downloadnutyx-extra-813285ad26660212791e7a68e0f5ec4203ac46ad.tar.gz
nutyx-extra-813285ad26660212791e7a68e0f5ec4203ac46ad.tar.bz2
nutyx-extra-813285ad26660212791e7a68e0f5ec4203ac46ad.tar.xz
nutyx-extra-813285ad26660212791e7a68e0f5ec4203ac46ad.zip
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/pakxe
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
}