Ticket #15778: macfuse.patch
File macfuse.patch, 1.5 KB (added by jmroot (Joshua Root), 16 years ago) |
---|
-
macfuse/Portfile
old new 61 61 # we know the build script generates a .tar.bz2 right next to the dmg 62 62 set tarname [string tolower [string replace $dmgname end-2 end "tar.bz2"]] 63 63 system "tar -xjf $tarname -C ${destpath}" 64 delete ${destpath} /opt65 file rename ${destpath}/usr ${destpath}/opt64 delete ${destpath}${prefix} 65 file rename ${destpath}/usr/local ${destpath}${prefix} 66 66 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, $path67 set path "${destpath}${prefix}/lib/${f}" 68 reinplace s,/usr/local,${prefix}, $path 69 69 } 70 70 foreach lib [list "libulockmgr.1" "libfuse.2"] { 71 set libpath " /opt/local/lib/${lib}.dylib"71 set libpath "${prefix}/lib/${lib}.dylib" 72 72 system "install_name_tool -id ${libpath} ${destpath}${libpath}" 73 73 } 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" 75 75 # delete the whole directory the build script creates 76 76 # when updating this Portfile DOUBLE CHECK THIS LINE 77 77 delete [file dirname $dmgname]