# -*- 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 # $Id: Portfile 152462 2016-09-10 10:43:56Z mps@macports.org $ PortSystem 1.0 PortGroup cxx11 1.0 PortGroup github 1.0 github.setup tatsuhiro-t nghttp2 1.14.1 v categories www platforms darwin maintainers mps openmaintainer license MIT 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 use_xz yes checksums rmd160 fc2e49f935615a366d74bcc18a56e10b1ebb11b9 \ sha256 2dfa665cd898b0b03ce304d9fc2e20c6c5facf56b212e4b2b1834ed6314c897e if {![variant_isset python34] && ![variant_isset python35] } { default_variants +python27 } if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35]} { error "You must select one of the python variants." } if {[variant_isset python27]} { set PythonVersion 2.7 } if {[variant_isset python34]} { set PythonVersion 3.4 } if {[variant_isset python35]} { set PythonVersion 3.5 } set PythonBranch [join [lrange [split ${PythonVersion} .] 0 1] ""] depends_build port:pkgconfig depends_lib port:jansson \ port:libev \ port:libevent \ port:libxml2 \ path:lib/libssl.dylib:openssl \ port:py${PythonBranch}-cython \ port:py${PythonBranch}-setuptools \ port:python${PythonBranch} \ port:zlib configure.args --disable-silent-rules \ --disable-threads \ ac_cv_prog_AWK=/usr/bin/awk configure.env CYTHON=${prefix}/bin/cython-${PythonVersion} \ JANSSON_CFLAGS=-I${prefix}/include JANSSON_LIBS="-L${prefix}/lib -ljansson" \ LIBEVENT_OPENSSL_CFLAGS=-I${prefix}/include/event2 \ LIBEVENT_OPENSSL_LIBS="-L${prefix}/lib -levent -levent_openssl" \ OPENSSL_CFLAGS=-I${prefix}/include/openssl \ OPENSSL_LIBS="-L${prefix}/lib -lcrypto -lssl" \ PYTHON=${prefix}/bin/python${PythonVersion} destroot.env PYTHONPATH=${destroot}${prefix}/lib/python${PythonVersion}/site-packages/ pre-destroot { xinstall -d ${destroot}${prefix}/lib/python${PythonVersion}/site-packages/ } variant python27 conflicts python34 python35 description {Build using Python 2.7} { configure.env-append PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python" } variant python34 conflicts python27 python35 description {Build using Python 3.4} {} variant python35 conflicts python27 python34 description {Build using Python 3.5} {}