# -*- 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 openssl 1.0 github.setup ngtcp2 ngtcp2 1.9.0 v revision 0 categories net devel maintainers {@barracuda156 gmail.com:vital.had} openmaintainer license MIT description ${name} project is an effort to implement RFC9000 QUIC protocol long_description {*}${description} homepage https://nghttp2.org/ngtcp2 checksums rmd160 5cfb733ef2c707e3043ff26625147367992bd171 \ sha256 b09d6f870e91b2b81b4c55ddd82190a80d53cca278e533d1a06529c00185514e \ size 636976 github.tarball_from releases use_xz yes depends_build-append path:bin/pkg-config:pkgconfig # Notice, QUIC via OpenSSL is unsupported presently: # https://github.com/ngtcp2/ngtcp2/issues/1034 # Other dependencies are only used for examples: # https://github.com/ngtcp2/ngtcp2/issues/1129 depends_lib-append path:lib/pkgconfig/gnutls.pc:gnutls compiler.cxx_standard 2017 configure.args-append --disable-silent-rules \ --enable-lib-only=yes \ --enable-werror=no \ --with-gnutls=yes variant picotls description "Enable PicoTLS" { depends_lib-append port:picotls configure.args-append \ --with-picotls=yes configure.cppflags-append \ -I${prefix}/include/picotls configure.ldflags-append \ -lpicotls-core -lpicotls-minicrypto -lpicotls-openssl } # Do not force build examples: # https://github.com/ngtcp2/ngtcp2/issues/804 variant examples description "Build examples" { depends_lib-append port:brotli \ port:libev \ port:nghttp3 if {(${os.platform} eq "darwin" && ${os.major} > 9) || \ ${os.platform} ne "darwin"} { # https://trac.macports.org/ticket/65945 depends_lib-append \ path:lib/pkgconfig/jemalloc.pc:jemalloc } compiler.cxx_standard \ 2020 configure.args-append \ --with-libbrotlidec=yes \ --with-libbrotlienc=yes configure.args-delete \ --enable-lib-only=yes } test.run yes test.target check