source: trunk/dports/www/nghttp2/Portfile @ 149100

Last change on this file since 149100 was 149100, checked in by mps@…, 3 years ago

nghttp2: update to version 1.11.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- 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
2# $Id: Portfile 149100 2016-05-30 11:23:45Z mps@macports.org $
3
4PortSystem          1.0
5PortGroup           cxx11 1.0
6PortGroup           github 1.0
7
8github.setup        tatsuhiro-t nghttp2 1.11.1 v
9categories          www
10platforms           darwin
11maintainers         mps openmaintainer
12license             MIT
13
14description         nghttp2 is an implementation of HTTP/2 in C.
15
16long_description    ${description} Included are a HTTP/2 client, server and proxy. The \
17                    package also provides a load test and benchmarking tool for HTTP/2.
18
19github.tarball_from releases
20use_xz              yes
21
22checksums           rmd160 b25716ce4d952a5ed40100e0835ff25c97c90e5f \
23                    sha256 865914ff3005df7a67c8d9ac474a900abc7c38d426a8c6fea8ce29dfe86da6ea
24
25if {![variant_isset python34] && ![variant_isset python35] } { default_variants +python27 }
26
27if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35]} {
28    error "You must select one of the python variants."
29}
30
31if {[variant_isset python27]} { set PythonVersion   2.7 }
32if {[variant_isset python34]} { set PythonVersion   3.4 }
33if {[variant_isset python35]} { set PythonVersion   3.5 }
34set PythonBranch    [join [lrange [split ${PythonVersion} .] 0 1] ""]
35
36depends_build       port:pkgconfig
37
38depends_lib         port:jansson \
39                    port:libev \
40                    port:libevent \
41                    port:libxml2 \
42                    path:lib/libssl.dylib:openssl \
43                    port:py${PythonBranch}-cython \
44                    port:py${PythonBranch}-setuptools \
45                    port:python${PythonBranch} \
46                    port:zlib
47
48configure.args      --disable-silent-rules \
49                    --disable-threads \
50                    ac_cv_prog_AWK=/usr/bin/awk
51
52configure.env       CYTHON=${prefix}/bin/cython-${PythonVersion} \
53                    JANSSON_CFLAGS=-I${prefix}/include JANSSON_LIBS="-L${prefix}/lib -ljansson" \
54                    LIBEVENT_OPENSSL_CFLAGS=-I${prefix}/include/event2 \
55                    LIBEVENT_OPENSSL_LIBS="-L${prefix}/lib -levent -levent_openssl" \
56                    OPENSSL_CFLAGS=-I${prefix}/include/openssl \
57                    OPENSSL_LIBS="-L${prefix}/lib -lcrypto -lssl" \
58                    PYTHON=${prefix}/bin/python${PythonVersion}
59
60destroot.env        PYTHONPATH=${destroot}${prefix}/lib/python${PythonVersion}/site-packages/
61
62pre-destroot {
63    xinstall -d ${destroot}${prefix}/lib/python${PythonVersion}/site-packages/
64}
65
66variant python27 conflicts python34 python35 description {Build using Python 2.7} {
67    configure.env-append   PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python"
68}
69
70variant python34 conflicts python27 python35 description {Build using Python 3.4} {}
71
72variant python35 conflicts python27 python34 description {Build using Python 3.5} {}
Note: See TracBrowser for help on using the repository browser.