Ticket #19929: mono-2.4_1.diff

File mono-2.4_1.diff, 3.8 KB (added by nox@…, 15 years ago)
  • files/patch-data-config.in.diff

     
     1--- data/config.in.orig 2008-11-04 15:54:12.000000000 +0100
     2+++ data/config.in      2008-11-04 15:56:30.000000000 +0100
     3@@ -1,22 +1,22 @@
     4 <configuration>
     5        <dllmap dll="i:cygwin1.dll" target="@LIBC@" os="!windows" />
     6        <dllmap dll="libc" target="@LIBC@" os="!windows"/>
     7-       <dllmap dll="intl" target="@INTL@" os="!windows"/>
     8+       <dllmap dll="intl" target="@PREFIX@/lib/@INTL@" os="!windows"/>
     9        <dllmap dll="intl" name="bind_textdomain_codeset" target="@LIBC@" os="solaris"/>
     10        <dllmap dll="libintl" name="bind_textdomain_codeset" target="@LIBC@" os="solaris"/>
     11-       <dllmap dll="libintl" target="@INTL@" os="!windows"/>
     12-       <dllmap dll="i:libxslt.dll" target="libxslt@libsuffix@" os="!windows"/>
     13+       <dllmap dll="libintl" target="@PREFIX@/lib/@INTL@" os="!windows"/>
     14+       <dllmap dll="i:libxslt.dll" target="@PREFIX@/lib/libxslt@libsuffix@" os="!windows"/>
     15        <dllmap dll="i:odbc32.dll" target="libodbc@libsuffix@" os="!windows"/>
     16        <dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
     17        <dllmap dll="oci" target="libclntsh@libsuffix@" os="!windows"/>
     18        <dllmap dll="db2cli" target="libdb2_36@libsuffix@" os="!windows"/>
     19-       <dllmap dll="MonoPosixHelper" target="libMonoPosixHelper@libsuffix@" os="!windows" />
     20+       <dllmap dll="MonoPosixHelper" target="@PREFIX@/lib/libMonoPosixHelper@libsuffix@" os="!windows" />
     21        <dllmap dll="i:msvcrt" target="@LIBC@" os="!windows"/>
     22        <dllmap dll="i:msvcrt.dll" target="@LIBC@" os="!windows"/>
     23-       <dllmap dll="sqlite" target="@SQLITE@" os="!windows"/>
     24-       <dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
     25+       <dllmap dll="sqlite" target="@PREFIX@/lib/@SQLITE@" os="!windows"/>
     26+       <dllmap dll="sqlite3" target="@PREFIX@/lib/@SQLITE3@" os="!windows"/>
     27        <dllmap dll="libX11" target="@X11@" os="!windows" />
     28-       <dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
     29+       <dllmap dll="libcairo-2.dll" target="@PREFIX@/lib/libcairo@libsuffix@" os="!windows"/>
     30        <dllmap dll="i:kernel32.dll">
     31                <dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
     32                <dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
  • Portfile

     
    44
    55name             mono
    66version          2.4
     7revision         1
    78categories       devel lang mono
    89platforms        darwin
    910maintainers      mww
     
    2324
    2425depends_build    port:pkgconfig port:gawk
    2526depends_lib      port:gettext port:glib2 port:icu \
    26                  port:libiconv port:zlib port:libgdiplus port:xorg-libs
     27                 port:libiconv port:zlib port:libgdiplus port:xorg-libX11
    2728
    28 patchfiles       patch-configure.diff
     29patchfiles       patch-configure.diff \
     30                 patch-data-config.in.diff
    2931
    30 configure.env-append    ACLOCAL_FLAGS="-I ${prefix}/share/aclocal"
    3132# Do NOT pick up external boehmgc (prefixing CPPFLAGS or CFLAGS does not suffice -- ugly++)
    3233configure.cc-append     "-I${worksrcpath}/libgc/include"
    3334
     
    4041test.run         yes
    4142test.target      check
    4243
    43 post-patch       { reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure }
     44post-patch {
     45    reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
     46    reinplace s|@PREFIX@|$prefix|g $worksrcpath/data/config.in
     47}
    4448
    4549post-destroot {
    4650    set docdir ${prefix}/share/doc/${name}-${version}
     
    6771}
    6872
    6973platform darwin 9 {
    70     depends_lib-delete    port:icu
    7174    configure.cflags-append    -D_NONSTD_SOURCE
    7275    configure.cxxflags-append    -D_NONSTD_SOURCE
    7376    patchfiles-append patch-interp.h.diff patch-sys-mman.c.diff \