# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                libtasn1
version             4.20.0
revision            0
categories          devel
# libs are LGPL; executables, examples and tests are GPL
license             {LGPL-2.1+ GPL-3+}
maintainers         {mps @Schamschula} openmaintainer
description         ASN.1 structure parser library
long_description    The libtasn1 library was developed for ASN1 (Abstract Syntax \
                    Notification One) structures management.
homepage            https://www.gnu.org/software/libtasn1/

master_sites        gnu

checksums       rmd160  37e617d47632f01cbf1c3be99f1894a600137204 \
                sha256  92e0e3bd4c02d4aeee76036b2ddd83f0c732ba4cda5cb71d583272b23587a76c \
                size    1783873

# Fix for 4.9 build failure.
# See https://lists.gnu.org/archive/html/help-libtasn1/2016-07/msg00001.html
configure.args      --disable-gcc-warnings \
                    --disable-silent-rules

# gcc-4 on OS X 10.5 defaults to gnu89 which is "ISO C90 plus GNU extensions". We need C99.
configure.cflags-append \
                    -std=gnu99

test.run            yes
test.target         check

livecheck.type      regex
livecheck.url       https://ftp.gnu.org/pub/gnu/libtasn1/
livecheck.regex     ${name}-(\\d+(\\.\\d+)*)
