From f193c4927be2dad20a283de5ed65bf2109f2beb0 Mon Sep 17 00:00:00 2001 From: sibel Date: Wed, 4 May 2011 12:28:12 +0200 Subject: myodbc 5.1.8-1 correction port --- extra/myodbc/Pkgfile | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'extra/myodbc/Pkgfile') 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 } -- cgit v1.2.3-70-g09d2