# -*- 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
PortGroup           makefile 1.0
PortGroup           openssl 1.0

openssl.branch      3

name                aqualink
github.setup        watermark-hd ppc-mac-modernization 0.5.23 v
revision            0
categories          aqua net
# license             unknown
maintainers         nomaintainer

description         SMB2/3 client and WebDAV NAS bridge for PowerPC Mac

long_description    AquaLink lets PowerPC Macs running Tiger or Leopard connect to \
                    modern SMB2/3 NAS shares, which the OS's built-in SMB1-only \
                    Samba stack cannot speak. It provides a Transmit/Cyberduck-style \
                    file browser for drag-and-drop transfers, and a local WebDAV \
                    bridge that lets the same share be mounted as a normal Finder \
                    volume via mount_webdav, without any kernel extension. It also \
                    includes the reverse: exposing a folder on the old Mac as a WebDAV \
                    share that a modern Mac or Windows machine can mount.

checksums           rmd160  fb6c56f84843a09b8cd62f7bbe017bf49ea994a1 \
                    sha256  e303c4fb14d3fbfde6d171730c3bd67681e5956e8fbb6a19d424e4f55edbec19 \
                    size    140353
github.tarball_from archive

worksrcdir          ppc-mac-modernization-${version}/smb3/AquaLink

depends_lib-append  port:libsmb2

compiler.c_standard 1999

build.args          LIBSMB2_DIR=${prefix}

destroot {
    xinstall -d ${destroot}${applications_dir}
    copy ${worksrcpath}/AquaLink.app ${destroot}${applications_dir}
}

livecheck.type      regex
livecheck.url       https://github.com/watermark-hd/ppc-mac-modernization/tags
livecheck.regex     {v(\d+(?:\.\d+)*)}
