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

github.setup        lefcha imapfilter 2.8.3 v
github.tarball_from archive
revision            0

description         IMAP message processor/filter

long_description    IMAPFilter connects to remote IMAP mail servers and \
                    processes messages according to defined filters (rules). \
                    It is intended to be executed before a user accesses \
                    his/her mailboxes.

categories          mail
installs_libs       no
license             BSD
maintainers         nomaintainer

checksums           rmd160  24de5ea6f0810f62b8796cfb5a9911d5b1051fbc \
                    sha256  a28ee90ac20a996e2fc19cbc36a36c152483085011f3b2ec8dfd913b7a6d9804 \
                    size    58724

depends_lib-append  path:lib/libssl.dylib:openssl \
                    port:libiconv   \
                    port:lua        \
                    port:pcre2

build.dir           ${worksrcpath}/src

build.args-append   MYLDFLAGS="\$LDFLAGS" \
                    MYCFLAGS="\$CFLAGS" \
                    MYLIBS="-liconv" \
                    INCDIRS="\$CPPFLAGS" \
                    LIBLUA=-llua${lua.version}

makefile.override   PREFIX

destroot.args-append \
                    MANDIR="${prefix}/share/man"
