Ticket #1936: mono-2.0.1_1.diff

File mono-2.0.1_1.diff, 3.8 KB (added by nox@…, 16 years ago)

Patch against mono 2.0.1 portfile

  • 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.0.1
     7revision         1
    78categories       devel lang mono
    89platforms        darwin
    910maintainers      mww
     
    2223
    2324depends_build    port:pkgconfig port:gawk
    2425depends_lib      port:gettext port:glib2 port:icu \
    25                  port:libiconv port:zlib port:libgdiplus lib:libX11.6:XFree86
     26                 port:libiconv port:zlib port:libgdiplus lib:libX11.6:XFree86 \
     27                 port:sqlite3 port:cairo
    2628
    27 patchfiles       patch-configure.diff
     29patchfiles       patch-configure.diff \
     30                 patch-data-config.in.diff
    2831
    2932configure.env-append    ACLOCAL_FLAGS="-I ${prefix}/share/aclocal" \
    3033                 PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig" \
     
    3841test.run         yes
    3942test.target      check
    4043
    41 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}
    4248
    4349post-destroot {
    4450    set docdir ${prefix}/share/doc/${name}-${version}
     
    6571}
    6672
    6773platform darwin 9 {
    68     depends_lib-delete    port:icu
    6974    configure.cflags-append    -D_NONSTD_SOURCE
    7075    configure.cxxflags-append    -D_NONSTD_SOURCE
    7176    patchfiles-append patch-interp.h.diff patch-sys-mman.c.diff \