1 # Maintainer: Brad Arrington <bradla8@yahoo.com>
8 pkgdesc="PBXT version 2a MySQL Database Engine plugin for version 5.1.x"
11 url="http://www.primebase.org/"
12 makedepends=('tcp_wrappers' 'zlib' 'perl' 'openssl' 'libtool' 'patch')
14 source=("http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/${_realpkgname}-${pkgver}.tar.gz"
17 'skip-abi-check.patch'
20 md5sums=('2a0f45a2f8b5a043b95ce7575796a30b'
21 '2234207625baa29b2ff7d7b4f088abce'
22 '0337741fa9afbe57939993636081a827'
23 'a97e574945e19de3908575b956241026'
24 '10cc8caf3d2b7024845c5fa7a88834c1')
28 bzr branch lp:pbxt/2.0 2.0
30 cd "${srcdir}/${_realpkgname}-${pkgver}"
31 patch -Np0 -i "${srcdir}/skip-abi-check.patch"
32 # CFLAGS/CXXFLAGS as suggested upstream
33 CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
34 CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
35 ./configure --prefix=/usr \
36 --libexecdir=/usr/sbin \
37 --localstatedir=/var \
38 --sysconfdir=/etc/mysql \
44 --with-collation=utf8_general_ci \
45 --with-extra-charsets=complex \
46 --with-embedded-server \
47 --with-unix-socket-path=/var/run/mysqld/mysqld.sock \
48 --enable-local-infile \
49 --with-plugins=partition,ftexample,archive,blackhole,federated,heap,innobase,innodb_plugin,ndbcluster
53 patch -p0 < "$srcdir/pbxt_compile.patch"
55 ./configure --with-mysql=../mysql-5.1.54
57 make DESTDIR="${pkgdir}" install || return 1