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

github.setup                ColumPaget fileferry 3.9 v
revision                    1
categories                  net www
license                     GPL-3
maintainers                 {@barracuda156 macos-powerpc.org:barracuda}
description                 File transfer app with a focus on scripted transfers
long_description            {*}${description}.
checksums                   rmd160  62f86f45af6d04ffa9d3f5d80f6a2d7acaab9db1 \
                            sha256  ac3825afb9084cc5a27db09b06bccc711e4adffde1fac135748a031dcb48e060 \
                            size    652383
github.tarball_from         archive

# https://github.com/ColumPaget/fileferry/issues/6
patchfiles                  patch-Makefile.in

use_autoconf                yes

depends_lib-append          port:libUseful \
                            port:zlib

configure.args-append       --enable-allfs \
                            --enable-dropbox \
                            --enable-faw \
                            --enable-filebin \
                            --enable-ftp \
                            --enable-gdrive \
                            --enable-gofile \
                            --enable-gopher \
                            --enable-http \
                            --enable-pop3 \
                            --enable-sftp \
                            --enable-syno \
                            --enable-synology \
                            --prefix=${destroot}${prefix} \
                            --with-libuseful

build.env-append            CC=${configure.cc} \
                            CFLAGS=${configure.cflags} [get_canonical_archflags cc]
