#!/bin/sh
#
# Copyright 2005 Zach Borgerding <zborgerd@gmail.com>
# Available under the terms of the GNU GPL.
#

NAME="libgda"
VERSION="1.9.99"
REVISION="2"

PKG_PATCH[0]='gda-data-model-private.h'
PKG_PATCH[1]='configure.in.disable-gda-sharp.patch'
PKG_PATCH[2]='libgda-1.9.99-Makefile.am.patch'
PKG_PATCH[3]='libgda-1.9.99-logging-exploit.patch'

PKG_SOURCEURL='http://ftp.gnome.org/pub/GNOME/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

cflags
prepare
analyzesource

#Eh?  They *forgot* a header in the source?  Nabbed this sucker from CVS.
findpatch filename gda-data-model-private.h
spewdo "cp $filename $PKG_SRCROOT/libgda/"

#Bad hacks to get this stupid thing from forcibly building against mono.
applypatch 1 1
applypatch 2 1

#Patch to fix potential logging exploit.
applypatch 3 0

configure --disable-static --enable-gtk-doc=no --with-bdb=/usr/include/db4/

make
makeinstall install-strip
tidydocumentation
analyzebinaries
includescript
finalizepackage
packagize
cleanup

