merge of '178eac00dc5aa8338d42e8e203633bec7817bbf6'
[vuplus_openembedded] / packages / mono / mono-mcs-intermediate.inc
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
5 # package in step 2.
6 # See http://www.mono-project.com/Mono:ARM
7
8 PR = "r0"
9 DEPENDS = "mono-native glib-2.0-native perl-native"
10
11 PARALLEL_MAKE = ""
12
13 SRC_URI += "file://mono-fix-libdir-path.patch;patch=1"
14
15 # Inherit native to set up compiler and paths ...
16 inherit native
17 # ... but override the target prefix
18 prefix = "/usr"
19 exec_prefix = "/usr"
20 sysconfdir = "/etc"
21 # TODO: Where does the mono package get
22 # these paths from? Use the same source.
23
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}"
30         done
31 }
32 addtask fix_libtool_name after do_patch before do_configure
33
34 do_stage() {
35         true
36 }
37
38 do_install() {
39         oe_runmake 'DESTDIR=${D}' install
40 }
41
42 do_package() {
43         true
44 }
45
46 do_stage() {
47         cd ${D}
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/
52 }
53
54 do_package_write_ipk() {
55         true
56 }
57
58 do_package_write() {
59         true
60 }