# -*- 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           cmake 1.1
PortGroup           github 1.0

# FreeBSD uses this commit: https://github.com/freebsd/freebsd-ports/commit/e2c719634794781bfa456e762e6e541ada8d4c34
github.setup        miniupnp libnatpmp 134fc89e2781e154e40042641f4d8bcbe42579f1
version             20250404
revision            0
categories          net
platforms           darwin freebsd
license             BSD
maintainers         {@edilmedeiros gmail.com:jose.edil+miniupnp} \
                    openmaintainer
description         Portable and fully compliant implementation of the NAT-PMP protocol for the client side
long_description    ${description}

homepage            http://miniupnp.free.fr

checksums           rmd160  1125408735d76a7519e5c6b088a32d211a8c8a2c \
                    sha256  be1864ed4e54a122590fd2de3824b085386b6e4aa9a91738c277c280ab8bf188 \
                    size    28296

# FIXME: at the moment this disables building static lib:
# https://github.com/miniupnp/libnatpmp/issues/51
configure.args-append \
                    -DBUILD_SHARED_LIBS=ON

livecheck.type      regex
livecheck.url       http://miniupnp.free.fr/files/
livecheck.regex     ${name}-${version}
