From 3557949fac411668dea08e8aeef0a0fa76ebd922 Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Mon, 20 Apr 2026 12:40:22 +0400 Subject: [PATCH] macfuse: fix linking Fixes: https://trac.macports.org/ticket/73869 --- fuse/macfuse/Portfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fuse/macfuse/Portfile b/fuse/macfuse/Portfile index a68e102ffd2..1b57f72efd3 100644 --- a/fuse/macfuse/Portfile +++ b/fuse/macfuse/Portfile @@ -4,7 +4,7 @@ PortSystem 1.0 PortGroup github 1.0 github.setup macfuse macfuse 5.2.0 macfuse- -revision 0 +revision 1 conflicts macfuse4 osxfuse categories fuse platforms {darwin >= 21} @@ -37,11 +37,16 @@ use_configure no set fs_dir /Library/Filesystems set dir ${fs_dir}/macfuse.fs +set mfmount ${dir}/Contents/Frameworks/MFMount.framework/Versions/A/MFMount build { + system -W ${pkg} "install_name_tool -id ${prefix}${mfmount} \ + Library/Filesystems/macfuse.fs/Contents/Frameworks/MFMount.framework/Versions/A/MFMount" system -W ${pkg} "install_name_tool -id ${prefix}/lib/libfuse.2.dylib \ + -change ${mfmount} ${prefix}${mfmount} \ usr/local/lib/libfuse.2.dylib" system -W ${pkg} "install_name_tool -id ${prefix}/lib/libfuse3.4.dylib \ + -change ${mfmount} ${prefix}${mfmount} \ usr/local/lib/libfuse3.4.dylib" system -W ${pkg} "install_name_tool \ -id ${prefix}/Library/Frameworks/macFUSE.framework/Versions/A/macFUSE \ @@ -50,7 +55,8 @@ build { system -W ${pkg} "codesign -fs - \ usr/local/lib/libfuse.2.dylib \ usr/local/lib/libfuse3.4.dylib \ - Library/Frameworks/macFUSE.framework/Versions/A/macFUSE" + Library/Frameworks/macFUSE.framework/Versions/A/macFUSE \ + Library/Filesystems/macfuse.fs/Contents/Frameworks/MFMount.framework/Versions/A/MFMount" reinplace "s|/usr/local|${prefix}|g" {*}[glob ${pkg}/usr/local/lib/pkgconfig/*] # remove FSKit extension on versions older than Tahoe if {${os.major} < 25} {