require mono_1.9.1.inc
PR = "r3"
DEPENDS = "glib-2.0-native perl-native"

DEFAULT_PREFERENCE = "-1"

SRC_URI += "file://mono-fix-libdir-path.patch;patch=1 \
	    file://libgc_cppflags.patch;patch=1 \
           "

PARALLEL_MAKE = ""

inherit native

do_stage_prepend() {
	install -m 755 ${S}/mono/monoburg/monoburg ${STAGING_BINDIR}
}

do_fix_libtool_name() {
	# inherit native will make that all native tools that are being
	# built are prefixed with something like "i686-linux-",
	# including libtool. Fix up some hardcoded libtool names:
	for i in "${S}"/runtime/*-wrapper.in; do
		sed -e "s/libtool/${BUILD_SYS}-libtool/" -i "${i}"
	done
}
addtask fix_libtool_name after do_patch before do_configure