source: trunk/dports/devel/mono/Portfile @ 87795

Last change on this file since 87795 was 87795, checked in by ryandesign@…, 6 years ago

mono: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 87795 2011-12-06 11:17:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name             mono
6version          2.10.6
7categories       devel lang mono
8platforms        darwin
9license          {GPL-2 LGPL-2 MIT}
10maintainers      nomaintainer
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     http://download.mono-project.com/sources/mono/
18use_bzip2        yes
19universal_variant no
20
21checksums           sha1    c17d211475a321680b4772dd3b8cadde7eaa60aa \
22                    rmd160  ca4037531046f60348350e7ab5a760ddbc152bc4
23
24depends_build    port:pkgconfig port:gawk
25depends_lib      port:gettext path:lib/pkgconfig/glib-2.0.pc:glib2 \
26                 port:libiconv port:zlib port:libgdiplus port:xorg-libX11
27
28# Do NOT pick up external boehmgc (prefixing CPPFLAGS or CFLAGS does not suffice -- ugly++)
29configure.cc-append     "-I${worksrcpath}/libgc/include"
30
31configure.args   --with-gc=included \
32                 --with-preview=yes \
33                 --without-sigaltstack \
34                 --with-libgdiplus=${prefix} \
35                 --disable-dtrace
36configure.ldflags -lintl -lintl -lcharset
37
38use_parallel_build no
39
40test.run         yes
41test.target      check
42
43post-patch {
44    reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
45    reinplace s|@PREFIX@|$prefix|g $worksrcpath/data/config.in
46}
47
48post-destroot {
49    set docdir ${prefix}/share/doc/${name}-${version}
50
51    xinstall -d ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING.LIB ChangeLog NEWS README \
53        ${destroot}${docdir}
54
55    xinstall -m 0644 -W ${worksrcpath}/docs assembly-bundle embedded-api exceptions \
56        gc-issues jit-thoughts jit-trampolines object-layout stack-alignment unmanaged-calls \
57        ${destroot}${docdir}
58
59    set libgc_docdir ${prefix}/share/doc/ligbc-mono-6.6
60
61    eval move ${destroot}${prefix}/share/libgc-mono \
62        ${destroot}${libgc_docdir}
63
64    xinstall -d ${destroot}${libgc_docdir}/html
65
66    eval move [glob ${destroot}${libgc_docdir}/*.html] \
67        ${destroot}${libgc_docdir}/html
68}
69
70platform darwin 9 {
71    # is this still needed?
72    patchfiles-append patch-interp.h.diff
73}
74
75livecheck.type  regex
76livecheck.url   ${homepage}mono-downloads/release_data.js
77livecheck.regex {stable_version = "(.+)"}
Note: See TracBrowser for help on using the repository browser.