# -*- 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
PortGroup compiler_blacklist_versions 1.0
PortGroup legacysupport 1.0
github.setup tatsuhiro-t nghttp2 1.39.2 v
maintainers {mps @Schamschula} openmaintainer
description nghttp2 is an implementation of HTTP/2 in C.
long_description ${description} Included are a HTTP/2 client, server and proxy. The \
package also provides a load test and benchmarking tool for HTTP/2.
github.tarball_from releases
checksums rmd160 5bda6a53aeaa2d7c194c990346951080a96f0912 \
sha256 a2d216450abd2beaf4e200c168957968e89d602ca4119338b9d7ab059fd4ce8b \
compiler.blacklist-append {clang < 602}
depends_build port:pkgconfig
depends_lib port:c-ares \
path:lib/libssl.dylib:openssl \
# See: https://trac.macports.org/ticket/57960
patchfiles-append patch-configure-nopython.diff \
patch-src-shrpx_client_handler.cc.diff \
configure.args --disable-silent-rules \
ac_cv_prog_AWK=/usr/bin/awk
configure.env JANSSON_CFLAGS=-I${prefix}/include \
LIBEVENT_OPENSSL_CFLAGS=-I${prefix}/include/event2 \
OPENSSL_CFLAGS=-I${prefix}/include/openssl
"JANSSON_LIBS=-L${prefix}/lib -ljansson" \
"LIBEVENT_OPENSSL_LIBS=-L${prefix}/lib -levent -levent_openssl" \
"OPENSSL_LIBS=-L${prefix}/lib -lcrypto -lssl"
if {[variant_isset python27]} { set PythonVersion 2.7 }
if {[variant_isset python36]} { set PythonVersion 3.6 }