I want to add mono package into mxe, but I failed. Please have a look at my make file and tell me where did I do wrong.
# This file is part of MXE.
PKG := mono
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.12.0
$(PKG)_CHECKSUM := cec83efd13ffc1e212c632395a5aac75772a09e7
$(PKG)_SUBDIR := mono-$($(PKG)_VERSION)
$(PKG)_FILE := mono-$($(PKG)_VERSION).tar.bz2
$(PKG)_DEPS := gcc gettext sqlite lapack glib libiconv
define $(PKG)_UPDATE
grep '<a href="" | \
$(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
grep -v '^2\.9' | \
grep '^2\.' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-explicit-deps \
--disable-glibtest \
--disable-modules \
--disable-cups \
--disable-test-print-backend \
--disable-gtk-doc \
--disable-man \
--with-included-immodules \
--without-x
export PATH=$PATH:$(1)/bin
make
make install
endef