aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-mono/mono/mono-6.xx.inc
blob: 355cd9de054c04460509f3c2d67ae3866cd228c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
SUMMARY = "An Open Source implementation of the Microsoft's .NET Framework"
DESCRIPTION = "This is part of the Mono project - http://mono-project.com"
HOMEPAGE = "http://mono-project.com"
BUGTRACKER = "http://bugzilla.xamarin.com/"
SECTION = "devel"

DEPENDS += "zlib libatomic-ops"

SRC_URI = "http://download.mono-project.com/sources/mono/mono-${PV}.tar.xz \
           file://dllmap-config.in.diff \
           file://0003-mono-use-python3-instead-of-python.patch \
"

# Add this patch into SRC_URI when testing projects
# that fail to compile due to lack of gmcs in recent
# mono releases
#
#	   file://0001-reintroduce-gmcs.patch \
#

def mono_workspace_version (d):
    pvsplit = d.getVar('PV',d,1).split('.')
    return pvsplit[0] + '.' + pvsplit[1] + '.' + pvsplit[2]

S = "${WORKDIR}/mono-${@mono_workspace_version(d)}"

FILESPATH =. "${FILE_DIRNAME}/mono-6.xx:"
FILESPATH =. "${FILE_DIRNAME}/mono-${PV}:"

inherit autotools-brokensep
inherit pkgconfig
inherit gettext
inherit python3native

# avoids build breaks when using no-static-libs.inc
DISABLE_STATIC = ""

EXTRA_OECONF += " mono_cv_uscore=no --with-sigaltstack=no --with-mcs-docs=no "

do_configure:prepend() {
    ${S}/autogen.sh --verbose || bbnote "${PN} failed to autogen.sh"
    find . -name "*.pc.in" -exec sed -i -e 's:^\([^=]*=\).*pcfiledir.*/\.\./\.\.:\1@prefix@:g' {} \;
}

EDEPENDS_X11 = "libgdiplus"
ERDEPENDS_X11 = "libgdiplus"
EDEPENDS_PROFILE45 = ""
ERDEPENDS_PROFILE45 = "${PN}-libs-4.5"
EDEPENDS_GAC = ""
ERDEPENDS_GAC = "${PN}-gac"
EDEPENDS_LIBS = ""
ERDEPENDS_LIBS = "${PN}-libs"

PACKAGECONFIG[x11] = ",,${EDEPENDS_X11},${ERDEPENDS_X11}"
PACKAGECONFIG[profile45] = ",,${EDEPENDS_PROFILE45},${ERDEPENDS_PROFILE45}"
PACKAGECONFIG[gac] = ",,${EDEPENDS_GAC},${ERDEPENDS_GAC}"
PACKAGECONFIG[libs] = ",,${EDEPENDS_LIBS},${ERDEPENDS_LIBS}"

# Default configuration, distros might want to override
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} profile45 gac libs"

PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-staticdev ${PN}-locale ${PN}-libs ${PN}-dev "
PACKAGES += "${PN}-config ${PN}-binaries ${PN}-libs-core "
PACKAGES += "${PN}-libs-2.0 ${PN}-libs-3.5 ${PN}-libs-4.0"
PACKAGES += "${PN}-libs-4.5 ${PN}-api-4.5.1 ${PN}-api-4.5.2"
PACKAGES += "${PN}-api-4.6 ${PN}-api-4.6.1 ${PN}-api-4.6.2"
PACKAGES += "${PN}-api-4.7 ${PN}-api-4.7.1 ${PN}-api-4.7.2"
PACKAGES += "${PN}-api-4.8"
PACKAGES += "${PN}-libs-compat-2.0 ${PN}-gac ${PN}-configuration-crypto "
PACKAGES += "${PN}-libs-monodoc ${PN}-xbuild "
PACKAGES += "${PN}-lldb "
PACKAGES += "${PN} "

FILES:${PN}				= "${sysconfdir}/* ${bindir}/* ${libdir}/*.so*"
FILES:${PN}-libs			= "${libdir}/libMono*.so ${libdir}/libmono-native.so ${libdir}/libikvm-native.so ${libdir}/libmono-btls-shared.so"
FILES:${PN}-lldb                        = "${libdir}/mono/lldb/*"
FILES:${PN}-libs-2.0                    = "${libdir}/mono/2.0/* ${libdir}/mono/2.0-api/*"
FILES:${PN}-libs-3.5                    = "${libdir}/mono/3.5/* ${libdir}/mono/3.5-api/*"
FILES:${PN}-libs-4.0                    = "${libdir}/mono/4.0/* ${libdir}/mono/4.0-api/*"
FILES:${PN}-libs-4.5                    = "${libdir}/mono/4.5/* ${libdir}/mono/4.5-api/*"
FILES:${PN}-libs-compat-2.0		= "${libdir}/mono/compat-2.0/*"
FILES:${PN}-gac				= "${libdir}/mono/gac/*"
FILES:${PN}-configuration-crypto	= "${libdir}/mono/mono-configuration-crypto/*/*"
FILES:${PN}-libs-monodoc		= "${libdir}/mono/monodoc/*"
FILES:${PN}-xbuild			= "${bindir}/xbuild ${libdir}/mono/xbuild/* ${libdir}/mono/xbuild-frameworks/* ${libdir}/mono/xbuild-frameworks/.NETFramework/*/*/* ${libdir}/mono/xbuild-frameworks/.NETPortable/*/*/* ${libdir}/mono/xbuild-frameworks/.NETPortable/*/*/.NET*"
FILES:${PN}-doc				+= " ${datadir}/libgc-mono/*"
FILES:${PN}-dbg				+= " ${datadir}/mono-2.0/mono/cil/cil-opcodes.xml ${libdir}/mono/*/*.mdb ${libdir}/mono/gac/*/*/*.mdb"
FILES:${PN}-dbg                         += " ${libdir}/mono/*/*.pdb ${libdir}/mono/*/*/*.pdb ${libdir}/mono/gac/*/*/*.pdb"
FILES:${PN}-dev                         += " ${bindir}/al ${bindir}/al2 ${bindir}/caspol ${bindir}/cccheck ${bindir}/cert2spc ${bindir}/certmgr ${bindir}/crlupdate ${bindir}/dtd2rng ${bindir}/dtd2xsd ${bindir}/genxs ${bindir}/ilasm ${bindir}/installvst ${bindir}/macpack ${bindir}/makecert ${bindir}/mdbrebase ${bindir}/mkbundle ${bindir}/mono-api-html ${bindir}/mono-api-info ${bindir}/mono-cil-strip ${bindir}/mono-find-provides ${bindir}/mono-find-requires ${bindir}/mono-shlib-cop ${bindir}/mono-symbolicate ${bindir}/mono-xmltool ${bindir}/monodis ${bindir}/monolinker ${bindir}/monop ${bindir}/monop2 ${bindir}/pedump ${bindir}/permview ${bindir}/peverify ${bindir}/resgen ${bindir}/resgen2 ${bindir}/secutil ${bindir}/sgen ${bindir}/signcode"
FILES:${PN}-dev                         += " ${datadir}/mono-2.0/mono/eglib/eglib-config.h"
FILES:${PN}-staticdev			+= " ${libdir}/*.a"
FILES:${PN}-api-4.5.1			+= " ${libdir}/mono/4.5.1-api/*"
FILES:${PN}-api-4.5.2			+= " ${libdir}/mono/4.5.2-api/*"
FILES:${PN}-api-4.6			+= " ${libdir}/mono/4.6-api/*"
FILES:${PN}-api-4.6.1			+= " ${libdir}/mono/4.6.1-api/*"
FILES:${PN}-api-4.6.2			+= " ${libdir}/mono/4.6.2-api/*"
FILES:${PN}-api-4.7			+= " ${libdir}/mono/4.7-api/*"
FILES:${PN}-api-4.7.1			+= " ${libdir}/mono/4.7.1-api/*"
FILES:${PN}-api-4.7.2			+= " ${libdir}/mono/4.7.2-api/*"
FILES:${PN}-api-4.8			+= " ${libdir}/mono/4.8-api/*"

RDEPENDS:${PN} =+ "bash zlib"
RDEPENDS:${PN}-dev =+ "bash"
RDEPENDS:${PN}-libs =+ "zlib"

RPROVIDES:${PN}				= "mono(System.Runtime.Loader) mono(System.Buffers)"
RPROVIDES:${PN}-gac			= "mono(Mono.Cecil) mono(Mono.Security) mono(System) mono(System.Configuration) mono(System.Net.Http) mono(System.Xml)"
RPROVIDES:${PN}-libs-2.0		= "mono(mscorlib)"

RDEPENDS:${PN}-libs-2.0			= "${PN}-gac"
RDEPENDS:${PN}-libs-3.5			= "${PN}-gac ${PN}-libs-2.0"
RDEPENDS:${PN}-libs-4.0			= "${PN}-gac"
RDEPENDS:${PN}-libs-4.5			= "${PN}"
RDEPENDS:${PN}-api-4.5.1		= "${PN}-gac"
RDEPENDS:${PN}-api-4.5.2		= "${PN}-gac"
RDEPENDS:${PN}-api-4.6			= "${PN}-gac"
RDEPENDS:${PN}-api-4.6.1		= "${PN}-gac"
RDEPENDS:${PN}-api-4.6.2		= "${PN}-gac"
RDEPENDS:${PN}-api-4.7			= "${PN}-gac"
RDEPENDS:${PN}-api-4.7.1		= "${PN}-gac"
RDEPENDS:${PN}-api-4.7.2		= "${PN}-gac"
RDEPENDS:${PN}-api-4.8			= "${PN}-gac"
RDEPENDS:${PN}-configuration-crypto	= "${PN}-gac"

INSANE_SKIP:${PN}-gac			= "file-rdeps"
INSANE_SKIP:${PN}-xbuild		= "file-rdeps"
INSANE_SKIP:${PN}-configuration-crypto	= "file-rdeps"

# Workaround for observed race in `make install`
PARALLEL_MAKEINST=""

# Otherwise the full path to bash is written to the first line of doltlibtool script
# which causes build failures with deeply nested build directories
CACHED_CONFIGUREVARS += "ac_cv_path_DOLT_BASH='/usr/bin/env bash'"