# -*- 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.2 v
revision            0
categories          aqua net
# license             MIT
maintainers         nomaintainer

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

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  497a9d7a3f24f014d9a43e83762d194b1e1f6818 \
                    sha256  ffc332ad4b29ebf9e5e7faede02a5077daced9c140b214726f2c613cbdb6c3df \
                    size    72515
github.tarball_from archive

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

patchfiles          patch-Makefile.diff

compiler.c_standard 1999

depends_lib-append  port:libsmb2

build.args          LIBSMB2_DIR=${prefix}

destroot {
    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+)*)}
