summaryrefslogtreecommitdiffstats
path: root/extra/myodbc/Pkgfile
blob: 3ba68a1e941dbcfb1d29008105689f5329af509b (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
# Description: Connecteur ODBC pour MySQL
# URL: http://www.mysql.com
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: unixodbc, mysqlclient
# Run on: unixodbc,mysqlclient

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
	myodbc-64bit.patch
	myodbc-add-mysys.patch
	myodbc-my-free.patch
	myodbc-shutdown.patch )

build () {
	cd mysql-connector-odbc-$version

	[ $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
}