Ticket #15778: macfuse.patch

File macfuse.patch, 1.5 KB (added by jmroot (Joshua Root), 16 years ago)

patch from #16956

  • macfuse/Portfile

    old new  
    6161    # we know the build script generates a .tar.bz2 right next to the dmg
    6262    set tarname [string tolower [string replace $dmgname end-2 end "tar.bz2"]]
    6363    system "tar -xjf $tarname -C ${destpath}"
    64     delete ${destpath}/opt
    65     file rename ${destpath}/usr ${destpath}/opt
     64    delete ${destpath}${prefix}
     65    file rename ${destpath}/usr/local ${destpath}${prefix}
    6666    foreach f [list "pkgconfig/fuse.pc" "libfuse.la" "libulockmgr.la"] {
    67         set path "${destpath}/opt/local/lib/${f}"
    68         reinplace s,/usr/local,/opt/local, $path
     67        set path "${destpath}${prefix}/lib/${f}"
     68        reinplace s,/usr/local,${prefix}, $path
    6969    }
    7070    foreach lib [list "libulockmgr.1" "libfuse.2"] {
    71         set libpath "/opt/local/lib/${lib}.dylib"
     71        set libpath "${prefix}/lib/${lib}.dylib"
    7272        system "install_name_tool -id ${libpath} ${destpath}${libpath}"
    7373    }
    74     system "install_name_tool -change /usr/local/lib/libfuse.2.dylib /opt/local/lib/libfuse.2.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
     74    system "install_name_tool -change /usr/local/lib/libfuse.2.dylib ${prefix}/lib/libfuse.2.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
    7575    # delete the whole directory the build script creates
    7676    # when updating this Portfile DOUBLE CHECK THIS LINE
    7777    delete [file dirname $dmgname]