# -*- 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

name                aqualink
github.setup        watermark-hd ppc-mac-modernization 0.5.17 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  ff204f0dd3e7f95b4678a20e382a593233bb3813 \
                    sha256  f9f8d7bd92ef282a235d1905a70760597f4baaf4e1ef078452385dee878b3313 \
                    size    112038
github.tarball_from archive

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

depends_lib-append  port:libsmb2

compiler.c_standard 1999

# The upstream Makefile now resolves the libsmb2 library on its own from
# LIBSMB2_DIR alone (checks for an installed dylib, then an installed
# static .a, then falls back to an uninstalled build-tree layout), so no
# Makefile patch is needed here -- this alone is enough to point it at
# this port's libsmb2 install.
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+)*)}
