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

NAME="evolution-data-server"
VERSION="2.28.0"
REVISION="1"
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

# nspr and nss are now separate packages.
#if [ -d /usr/include/xulrunner/stable -a \
#	-d /usr/include/xulrunner/stable ]; then
#	spew 2 "Building against XULRunner sources instead of Mozilla sources"
#	extra_configargs="--with-nss-includes=/usr/include/xulrunner/stable \
#	--with-nss-libs=/usr/lib$LIBSUFFIX/xulrunner \
#	--with-nspr-includes=/usr/include/xulrunner/stable \
#	--with-nspr-libs=/usr/lib$LIBSUFFIX/xulrunner"
#fi

#export LDFLAGS="-Wl,--as-needed"
#--with-nss-includes=/usr/include/nss --with-nspr-includes=/usr/include/nspr
cflags
prepare
analyzesource
configure --with-openldap=yes --enable-gtk-doc --with-krb5=$PKG_PREFIX --with-krb4=$PKG_PREFIX --enable-nss --enable-smime=yes --enable-ipv6=yes --enable-gnome-keyring 
make
makeinstall install-strip
spewdo "find $PKG_STAGEROOT$PKG_PREFIX/lib$LIBSUFFIX/evolution-data-server-1.2/ -name '*.la' -exec rm {} \;"
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
