1 # This is a straw-man recipe for step 1 in the two-step build of
2 # mono. Because it's impossible to build the mcs directory
3 # in cross-compile mode, this recipe will do a native build,
4 # then tar the resulting install tree for usage by the mono
6 # See http://www.mono-project.com/Mono:ARM
9 DEPENDS = "mono-native glib-2.0-native perl-native"
13 SRC_URI += "file://mono-fix-libdir-path.patch;patch=1"
15 # Inherit native to set up compiler and paths ...
17 # ... but override the target prefix
21 # TODO: Where does the mono package get
22 # these paths from? Use the same source.
24 do_fix_libtool_name() {
25 # inherit native will make that all native tools that are being
26 # built are prefixed with something like "i686-linux-",
27 # including libtool. Fix up some hardcoded libtool names:
28 for i in "${S}"/runtime/*-wrapper.in; do
29 sed -e "s/libtool/${BUILD_SYS}-libtool/" -i "${i}"
32 addtask fix_libtool_name after do_patch before do_configure
39 oe_runmake 'DESTDIR=${D}' install
48 rm -f ${WORKDIR}/mono-mcs-${PV}.tar.gz
49 tar -cvzf ${WORKDIR}/mono-mcs-${PV}.tar.gz .
50 install -d ${STAGING_DATADIR}/mono-mcs
51 cp ${WORKDIR}/mono-mcs-${PV}.tar.gz ${STAGING_DATADIR}/mono-mcs/
54 do_package_write_ipk() {