# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           legacysupport 1.0

github.setup        nzbget nzbget 21.1 v
revision            0

github.tarball_from releases

checksums           rmd160  44f228c92ce508cf8acb381a7814ef360c9daabd \
                    sha256  4e8fc1beb80dc2af2d6a36a33a33f44dedddd4486002c644f4c4793043072025 \
                    size    1988916

categories          net
maintainers         nomaintainer
platforms           darwin
license             GPL-2+

description     \
    NZBGet is a cross-platform binary newsgrabber for nzb files, written in C++.
long_description \
    ${description} \
    It supports client/server mode, automatic par-check/-repair and \
    web-interface. NZBGet requires low system resources and runs great on \
    routers, NAS-devices and media players.

homepage            https://nzbget.net/

distname            ${name}-${version}-src
worksrcdir          ${name}-${version}

depends_build       port:pkgconfig
depends_lib         path:lib/pkgconfig/gnutls.pc:gnutls \
                    port:libgcrypt \
                    port:libxml2 \
                    port:ncurses \
                    port:zlib

# needs a c++14 compatible compiler
compiler.cxx_standard   2014

configure.args      --with-tlslib=GnuTLS \
                    --with-libgnutls-includes=${prefix}/include/gnutls \
                    --with-libgnutls-libraries=${prefix}/lib

notes "
An example configuration file has been installed at ${prefix}/share/nzbget/nzbget.conf
"

livecheck.url       ${github.homepage}/releases/latest
