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

NAME="evince"
VERSION="0.4.0"
REVISION="5"

PKG_SOURCEURL='http://ftp.gnome.org/pub/gnome/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.gz'
PKG_PATCH[0]="evince.desktop.patch"

# This is new to the engine as of v1.95.00!
#PKG_USEAUTOGENSH="yep"

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

cflags "-O2 -march=i686"
cxxflags "-O2 -march=i686"
prepare

spewdo "cd $PKG_BUILDROOT ; autoreconf"
export LDFLAGS="-L/usr/share/texmf/lib"
export CPPFLAGS="-I/usr/share/texmf/include"

analyzesource

applypatch 0 0

#configure
configure --enable-static=no --enable-pixbuf --enable-nautilus --enable-dvi
make
makeinstall install-strip
# Nothing links to this thing, so it's not like it needs the helper file!
tidydocumentation
analyzebinaries
includescript
finalizepackage
packagize
cleanup
