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

NAME="librsvg"
VERSION="2.26.0"
REVISION="2"

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

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

cflags
cxxflags
prepare
analyzesource
# These are actually defaults, but we want the build to stop if the configure
# script detects them as unavailable.
# Disabled mozilla-plugin for now since xulrunner is not providing it atm for
# some reason.
configure --with-svgz --with-croco --disable-mozilla-plugin
make
makeinstall
tidydocumentation
spewdo "mv $PKG_STAGEROOT$PKG_PREFIX/lib$LIBSUFFIX/mozilla $PKG_STAGEROOT$PKG_PREFIX/lib$LIBSUFFIX/firefox"
spewdo "find $PKG_STAGEROOT$PKG_PREFIX/lib$LIBSUFFIX/gtk-2.0/2.10.0/ -name '*.la' -exec rm {} \;"
spewdo "find $PKG_STAGEROOT$PKG_PREFIX/lib$LIBSUFFIX/firefox/plugins/ -name '*.la' -exec rm {} \;"
analyzebinaries
finalizepackage
packagize
cleanup
