Ticket #14800: Portfile

File Portfile, 2.8 KB (added by vike2000, 15 years ago)
Line 
1# $Id: Portfile 61324 2009-12-08 19:54:34Z mww@macports.org $
2
3PortSystem 1.0
4
5name             mono
6version          2.4.2.3
7categories       devel lang mono
8platforms        darwin
9license          GPLv2 LGPLv2 MIT
10maintainers      mww openmaintainer
11description      Implementation of the .NET Development Framework
12long_description Mono is an effort to create an open source \
13                 implementation of the .NET Development Framework \
14                 including a C# compiler.
15
16homepage         http://www.go-mono.com/
17master_sites     ${homepage}sources/${name}/
18use_bzip2        yes
19universal_variant no
20
21checksums           md5     696f25afc8453cd0d1c78de6e905dcf2 \
22                    sha1    c0e7c2992ef6c1ea3d1fd48ef581aa1ff6ec29cb \
23                    rmd160  f52bf6e281b076b859a567c17917577710522684
24
25depends_build    port:pkgconfig port:gawk
26depends_lib      port:gettext path:lib/pkgconfig/glib-2.0.pc:glib2 port:icu \
27                 port:libiconv port:zlib port:libgdiplus port:xorg-libX11
28
29patchfiles       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++)
33configure.cc-append     "-I${worksrcpath}/libgc/include"
34
35configure.args   --with-gc=included \
36                 --with-preview=yes \
37                 --without-sigaltstack \
38                 --with-libgdiplus=${prefix} \
39                 --disable-dtrace
40
41test.run         yes
42test.target      check
43
44post-patch {
45    reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
46    reinplace s|@PREFIX@|$prefix|g $worksrcpath/data/config.in
47}
48
49post-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
73platform 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
84livecheck.type  regex
85livecheck.url   ${homepage}sources-stable/
86livecheck.regex mono/mono-(\\d+(?:\\.\\d+)*)
87