#!/bin/bash
#
# Copyright 2004-2007 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="evolution-data-server"
VERSION="3.6.1"
REVISION="1"

PKG_SOURCEURL='ftp://ftp.gnome.org/mirror/gnome.org/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.xz'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
prepare
analyzesource

configure --with-openldap=yes \
	  --enable-gtk-doc \
	  --with-krb5=$PKG_PREFIX \
	  --enable-smime=yes \
	  --enable-ipv6=yes \
	  --enable-largefile \
	  --with-nss-includes=/usr/include/nss \
	  --with-nspr-includes=/usr/include/nspr \
	  --enable-vala-bindings
make
makeinstall install-strip

# Remove the static libraries
spewdo "find $PKG_STAGEROOT$PKG_PREFIX/lib$LIBSUFFIX/evolution-data-server -name '*.la' -exec rm {} \;"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
