maintainers {raimue @raimue} \
description Utility for manipulating HFS+ compressed files
AFSC (Apple File System Compression) tool is an utility that can be used to \
apply HFS+ compression to file(s), decompress HFS+ compressed file(s), or \
get information about existing HFS+ compressed file(s). Mac OS 10.6 or \
homepage https://brkirch.wordpress.com/afsctool/
master_sites https://docs.google.com/uc?export=download&id=0BwQlnXqL939ZQjBQNEhRQUo0aUk&dummy=
distname ${name}_${distversion}
checksums md5 d0f2b79676c0f3d8c22e95fcf859a05f \
sha1 216d7ff54bad947781d9b49f9754c5d3c07349be \
rmd160 d692dc656deb32da090f4f40b4e94a62d808332d
if {${os.platform} eq "darwin" && ${os.major} < 10} {
ui_error "${name} ${version} is only compatible with Mac OS X 10.6 or later"
return -code error "incompatible Mac OS X version"
patchfiles patch-apfs.diff
if {![variant_isset universal]} {
set archflags ${configure.cc_archflags}
set archflags ${configure.universal_cflags}
system "cd ${worksrcpath} && ${configure.cc} ${configure.cflags} ${configure.ldflags} ${archflags} -lz -framework CoreServices -o afsctool afsctool.c"
xinstall -W ${worksrcpath} -m 755 ${name} ${destroot}${prefix}/bin
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -W ${worksrcpath} -m 644 License.txt ${destroot}${prefix}/share/doc/${name}