# -*- 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.21.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  fb9aab15e8bc8afa36ddf3f6f765f55b7c8d72b8 \
                sha256  1d8a444a223cc5464240777346e125de51d8e6abf0b8bac742ac84609167dc87 \
                size    1816537

# 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+)*)
