_realname=libgda
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-full"
pkgver=5.2.2
-pkgrel=3
+pkgrel=4
arch=('any')
pkgdesc="Data abstraction library based on GLib (mingw-w64)"
license=("LGPL 2")
"libintl")
conflicts=("${MINGW_PACKAGE_PREFIX}-libgda")
options=('!strip' 'debug' 'staticlibs')
+install=${_realname}-${CARCH}.install
source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:3}/${_realname}-$pkgver.tar.xz
001-lemon.patch
002-mysql-m4.patch
build() {
if [ "${CARCH}" = "i686" ]; then
- local _conf='--with-oracle=/c/Users/AndreaZ/Documents/development_environment_gtk3/instantclient_10_2/sdk --with-oracle-libdir-name=lib'
- export GRAPHVIZ_CFLAGS="-I/c/Users/AndreaZ/Documents/development_environment_gtk3/graphviz/include/graphviz"
- export GRAPHVIZ_LIBS="-L/c/Users/AndreaZ/Documents/development_environment_gtk3/graphviz/lib/release/dll -lgvc -lcgraph -lcdt"
+ local _conf='--with-oracle=/c/Users/AndreaZ/Documents/development_environment_gtk3/binaries/i686/instantclient_10_2/sdk --with-oracle-libdir-name=lib'
+ export GRAPHVIZ_CFLAGS="-I/c/Users/AndreaZ/Documents/development_environment_gtk3/binaries/i686/graphviz/include/graphviz"
+ export GRAPHVIZ_LIBS="-L/c/Users/AndreaZ/Documents/development_environment_gtk3/binaries/i686/graphviz/lib/release/dll -lgvc -lcgraph -lcdt"
else
- local _conf=''
+ local _conf='--with-oracle=/c/Users/AndreaZ/Documents/development_environment_gtk3/binaries/x86_64/instantclient_10_2/sdk --with-oracle-libdir-name=lib'
+ #export GRAPHVIZ_CFLAGS="-I/c/Users/AndreaZ/Documents/development_environment_gtk3/binaries/x86_64/graphviz/include/graphviz"
+ #export GRAPHVIZ_LIBS="-L/c/Users/AndreaZ/Documents/development_environment_gtk3/binaries/x86_64/graphviz/lib/release/dll -lgvc -lcgraph -lcdt"
fi
mkdir -p build-${MINGW_CHOST}
cd build-${MINGW_CHOST}
+ mkdir -p doc/C/html
+ cp -rf ../${_realname}-${pkgver}/doc/C/html/* doc/C/html
+
$_envvar \
../${_realname}-${pkgver}/configure \
--host=${MINGW_CHOST} \
package() {
cd "$srcdir/build-${MINGW_CHOST}"
make DESTDIR=$pkgdir install
+
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+ install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.LIB" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.LIB"
}