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


NAME="mono"
VERSION="2.4.2.3"
REVISION="2"

PKG_SOURCEURL='http://ftp.novell.com/pub/$NAME/sources/$NAME/$NAME-$VERSION.tar.bz2'
PKG_DISABLESMP='lame makefiles'

PKG_PATCH[0]='mono-2.2.configure.in.patch'

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

#buildrequires libgc

cflags
prepare

applypatch 0 1

analyzesource
( spewdo "cd $PKG_SRCROOT"; spewdo "autoconf" )
configure --libdir=/usr/lib$LIBSUFFIX \
	  --with-libgdiplus=/usr/lib$LIBSUFFIX \
	  --with-x --with-tls=pthread \
	  --with-icu=yes
make
#makecheck 
makeinstall install-strip
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
