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

NAME="evolution-data-server"
VERSION="1.4.2.1"
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

if [ -d /usr/include/firefox/nss -a \
     -d /usr/include/firefox/nspr ]; then
  spew 2 "Building against Firefox sources instead of Mozilla sources"
  extra_configargs="--with-nss-includes=/usr/include/firefox/nss \
    --with-nss-libs=/usr/lib/firefox \
    --with-nspr-includes=/usr/include/firefox/nspr \
    --with-nspr-libs=/usr/lib/firefox"
fi

#export LDFLAGS="-Wl,--as-needed"
cflags
prepare
analyzesource
configure --with-openldap=yes --enable-gtk-doc \
  --with-krb5=$PKG_PREFIX --with-krb4=$PKG_PREFIX \
  $extra_configargs
make
makeinstall install-strip
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
