# -*- 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 149100 2016-05-30 11:23:45Z mps@macports.org $ PortSystem 1.0 PortGroup cxx11 1.0 PortGroup github 1.0 github.setup tatsuhiro-t nghttp2 1.11.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 b25716ce4d952a5ed40100e0835ff25c97c90e5f \ sha256 865914ff3005df7a67c8d9ac474a900abc7c38d426a8c6fea8ce29dfe86da6ea 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} {}