1 | # $Id: Portfile 61324 2009-12-08 19:54:34Z mww@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mono |
---|
6 | version 2.4.2.3 |
---|
7 | categories devel lang mono |
---|
8 | platforms darwin |
---|
9 | license GPLv2 LGPLv2 MIT |
---|
10 | maintainers mww openmaintainer |
---|
11 | description Implementation of the .NET Development Framework |
---|
12 | long_description Mono is an effort to create an open source \ |
---|
13 | implementation of the .NET Development Framework \ |
---|
14 | including a C# compiler. |
---|
15 | |
---|
16 | homepage http://www.go-mono.com/ |
---|
17 | master_sites ${homepage}sources/${name}/ |
---|
18 | use_bzip2 yes |
---|
19 | universal_variant no |
---|
20 | |
---|
21 | checksums md5 696f25afc8453cd0d1c78de6e905dcf2 \ |
---|
22 | sha1 c0e7c2992ef6c1ea3d1fd48ef581aa1ff6ec29cb \ |
---|
23 | rmd160 f52bf6e281b076b859a567c17917577710522684 |
---|
24 | |
---|
25 | depends_build port:pkgconfig port:gawk |
---|
26 | depends_lib port:gettext path:lib/pkgconfig/glib-2.0.pc:glib2 port:icu \ |
---|
27 | port:libiconv port:zlib port:libgdiplus port:xorg-libX11 |
---|
28 | |
---|
29 | patchfiles patch-configure.diff \ |
---|
30 | patch-data-config.in.diff |
---|
31 | |
---|
32 | # Do NOT pick up external boehmgc (prefixing CPPFLAGS or CFLAGS does not suffice -- ugly++) |
---|
33 | configure.cc-append "-I${worksrcpath}/libgc/include" |
---|
34 | |
---|
35 | configure.args --with-gc=included \ |
---|
36 | --with-preview=yes \ |
---|
37 | --without-sigaltstack \ |
---|
38 | --with-libgdiplus=${prefix} \ |
---|
39 | --disable-dtrace |
---|
40 | |
---|
41 | test.run yes |
---|
42 | test.target check |
---|
43 | |
---|
44 | post-patch { |
---|
45 | reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure |
---|
46 | reinplace s|@PREFIX@|$prefix|g $worksrcpath/data/config.in |
---|
47 | } |
---|
48 | |
---|
49 | post-destroot { |
---|
50 | set docdir ${prefix}/share/doc/${name}-${version} |
---|
51 | |
---|
52 | xinstall -d ${destroot}${docdir} |
---|
53 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING.LIB ChangeLog NEWS README \ |
---|
54 | ${destroot}${docdir} |
---|
55 | |
---|
56 | xinstall -m 0644 -W ${worksrcpath}/docs assembly-bundle embedded-api exceptions \ |
---|
57 | gc-issues jit-thoughts jit-trampolines object-layout stack-alignment unmanaged-calls \ |
---|
58 | ${destroot}${docdir} |
---|
59 | |
---|
60 | move ${destroot}${prefix}/share/jay ${destroot}${docdir} |
---|
61 | |
---|
62 | set libgc_docdir ${prefix}/share/doc/ligbc-mono-6.6 |
---|
63 | |
---|
64 | eval move ${destroot}${prefix}/share/libgc-mono \ |
---|
65 | ${destroot}${libgc_docdir} |
---|
66 | |
---|
67 | xinstall -d ${destroot}${libgc_docdir}/html |
---|
68 | |
---|
69 | eval move [glob ${destroot}${libgc_docdir}/*.html] \ |
---|
70 | ${destroot}${libgc_docdir}/html |
---|
71 | } |
---|
72 | |
---|
73 | platform darwin 9 { |
---|
74 | configure.cflags-append -D_NONSTD_SOURCE |
---|
75 | configure.cxxflags-append -D_NONSTD_SOURCE |
---|
76 | patchfiles-append \ |
---|
77 | patch-interp.h.diff \ |
---|
78 | patch-sys-mman.c.diff \ |
---|
79 | patch-mono-mini-mini-x86.h.diff \ |
---|
80 | patch-mono-mini-mini-ppc.h.diff \ |
---|
81 | patch-libgc-darwin_stop_world.c.diff |
---|
82 | } |
---|
83 | |
---|
84 | livecheck.type regex |
---|
85 | livecheck.url ${homepage}sources-stable/ |
---|
86 | livecheck.regex mono/mono-(\\d+(?:\\.\\d+)*) |
---|
87 | |
---|