# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 github.setup osxfuse osxfuse 4.8.2 macfuse- revision 0 name macfuse conflicts osxfuse categories fuse supported_archs arm64 x86_64 license Restrictive maintainers {makr @mohd-akram} {ra1nb0w @ra1nb0w} openmaintainer description FUSE for macOS long_description FUSE extends macOS by adding support for user space file \ systems. homepage https://osxfuse.github.io/ github.tarball_from releases distname ${name}-${version} use_dmg yes checksums rmd160 1b20d340f07e76cea2183e1792a6c5c781f82277 \ sha256 3c05fbb796082099fa7f28edcfbdadd715578782e199c1c67e46a4b21b72886f \ size 6205844 if {${os.platform} eq "darwin" && ${os.major} < 16} { known_fail yes pre-fetch { ui_error "${name} is only supported on macOS 10.12 or later." return -code error "unsupported platform version" } } set pkg ${workpath}/pkg/Core.pkg post-extract { system -W ${worksrcpath} \ "pkgutil --expand 'Extras/macFUSE ${version}.pkg' ${workpath}/pkg" system -W ${pkg} "gzip -dc Payload | cpio -id" } use_configure no build { system -W ${pkg} "install_name_tool -id ${prefix}/lib/libfuse.2.dylib \ usr/local/lib/libfuse.2.dylib" system -W ${pkg} "install_name_tool \ -id ${prefix}/Library/Frameworks/macFUSE.framework/Versions/A/macFUSE \ -change /usr/local/lib/libfuse.2.dylib ${prefix}/lib/libfuse.2.dylib \ Library/Frameworks/macFUSE.framework/Versions/A/macFUSE" system -W ${pkg} "codesign -fs - \ usr/local/lib/libfuse.2.dylib \ Library/Frameworks/macFUSE.framework/Versions/A/macFUSE" } set dir /Library/Filesystems/macfuse.fs destroot { copy ${pkg}/Library/Filesystems ${destroot}${prefix}/Library xinstall -W ${pkg}${dir}/Contents/Resources -m 4755 load_macfuse mount_macfuse \ ${destroot}${prefix}${dir}/Contents/Resources copy {*}[glob ${pkg}/Library/Frameworks/*] ${destroot}${prefix}/Library/Frameworks copy {*}[glob ${pkg}/usr/local/include/*] ${destroot}${prefix}/include copy {*}[glob ${pkg}/usr/local/lib/pkgconfig/*] ${destroot}${prefix}/lib/pkgconfig reinplace "s|/usr/local|${prefix}|g" [glob ${destroot}${prefix}/lib/pkgconfig/*] copy {*}[glob -type f ${pkg}/usr/local/lib/*] ${destroot}${prefix}/lib # remove unwanted files like ._uninstall_macfuse.app system "find ${destroot}${prefix} -type f -iname '._*' -delete" } notes " Run the following before using macFUSE: sudo ln -fsn ${prefix}${dir} ${dir} "