Ticket #2539: gtk2.diff

File gtk2.diff, 1.1 KB (added by opendarwin.nospam@…, 20 years ago)

patch for portfile

  • Portfile

    old new  
    33PortSystem 1.0
    44name            gtk2
    55version         2.6.0
    6 revision        1
     6revision        2
    77categories      x11
    88maintainers     mij@opendarwin.org
    99description     Gimp ToolKit version 2
     
    3434
    3535build.args      CFLAGS+="-I${x11prefix}/include"
    3636
    37 post-configure  { reinplace "s|__PREFIX__|${prefix}|g" ${filespath}/gdk-pixbuf.loaders }
    3837
    3938platform darwin 6 { patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c }
    4039
     
    4241                  system "ln -fs libgdk-x11-2.0.0.600.0.dylib ${destroot}${prefix}/lib/libgdk.2.dylib"
    4342                  system "install -d -m 755 ${destroot}${prefix}/etc/gtk-2.0"
    4443                  system "cp ${filespath}/gdk-pixbuf.loaders ${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
     44                  reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders
    4545                  system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/gtk-query-immodules-2.0 > ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules" }