Ticket #15778: macfuse.2.patch
File macfuse.2.patch, 1.6 KB (added by mike@…, 16 years ago) |
---|
-
macfuse/Portfile
old new 62 62 # we know the build script generates a .tar.bz2 right next to the dmg 63 63 set tarname [string tolower [string replace $dmgname end-2 end "tar.bz2"]] 64 64 system "tar -xjf $tarname -C ${destpath}" 65 delete ${destpath} /opt66 file rename ${destpath}/usr ${destpath}/opt65 delete ${destpath}${prefix} 66 file rename ${destpath}/usr/local ${destpath}${prefix} 67 67 foreach f [list "pkgconfig/fuse.pc" "libfuse.la" "libulockmgr.la"] { 68 set path "${destpath} /opt/local/lib/${f}"69 reinplace s,/usr/local, /opt/local, $path68 set path "${destpath}${prefix}/lib/${f}" 69 reinplace s,/usr/local,${prefix}, $path 70 70 } 71 71 set libfuse_version 0 72 72 foreach lib [list "libulockmgr.0" "libfuse.${libfuse_version}"] { 73 set libpath " /opt/local/lib/${lib}.dylib"73 set libpath "${prefix}/lib/${lib}.dylib" 74 74 system "install_name_tool -id ${libpath} ${destpath}${libpath}" 75 75 } 76 system "install_name_tool -change /usr/local/lib/libfuse.${libfuse_version}.dylib /opt/local/lib/libfuse.${libfuse_version}.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"76 system "install_name_tool -change /usr/local/lib/libfuse.${libfuse_version}.dylib ${prefix}/lib/libfuse.${libfuse_version}.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE" 77 77 # delete the whole directory the build script creates 78 78 # when updating this Portfile DOUBLE CHECK THIS LINE 79 79 delete [file dirname $dmgname]