NAME=mono
VERSION=(1.2.2.1 1.2.2 )
BUILD=${BUILD:-1}
ROOT_REQUIRED=1
OPTIMIZE=${OPTIMIZE:-"-Os -pipe"}

SOURCE=( http://go-mono.com/sources/$NAME/$NAME-$VERSION.tar.gz
	 http://go-mono.com/sources/libgdiplus/libgdiplus-${VERSION[1]}.tar.gz )

build() {

  _explode_all
  
  cd $TMP/libgdiplus-${VERSION[1]}
  $CONFIGURE \
    --disable-glitz
  make -j $NUMOBJS
  make DESTDIR="$PKG" install

  _doc 0 libgdiplus-${VERSION[1]} AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS
  _chfix
  _chgrp_bin
  
  _tmp_pkg 0

  cd "$TMP/$NAME-$VERSION" 
  $CONFIGURE \
    --disable-static \
    --cache-file=""
  make -j $NUMOBJS
  make DESTDIR="$PKG" install
  _doc 0 "$NAME-$VERSION" AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS

  _chfix
  _chgrp_bin

}  

