Ticket #51060: Portfile-nghttp2.diff
File Portfile-nghttp2.diff, 2.3 KB (added by Schamschula (Marius Schamschula), 9 years ago) |
---|
-
Portfile
old new 1 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 147 481 2016-04-05 12:50:13Z khindenburg@macports.org $2 # $Id: Portfile 147204 2016-03-31 02:39:48Z khindenburg@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup cxx11 1.0 6 6 PortGroup github 1.0 7 7 8 8 github.setup tatsuhiro-t nghttp2 1.9.2 v 9 set PythonVersion 2.710 set PythonBranch [join [lrange [split ${PythonVersion} .] 0 1] ""]11 9 categories www 12 10 platforms darwin 13 11 maintainers gmail.com:mschamschula openmaintainer … … 24 22 checksums rmd160 ef40a5c6782294116863e22890c0a74a54715fdb \ 25 23 sha256 3d600ef8bfd151769559bc23806877b8b4eaf3d66776e6c1427b9c04cce8e853 26 24 25 if {![variant_isset python35]} { default_variants +python27 } 26 27 if {![variant_isset python27] && ![variant_isset python35]} { 28 error "You must select one of the python variants." 29 } 30 31 if {[variant_isset python27]} { set PythonVersion 2.7 } 32 if {[variant_isset python35]} { set PythonVersion 3.5 } 33 set PythonBranch [join [lrange [split ${PythonVersion} .] 0 1] ""] 34 27 35 depends_build port:pkgconfig 28 36 29 37 depends_lib port:jansson \ … … 46 54 LIBEVENT_OPENSSL_LIBS="-L${prefix}/lib -levent -levent_openssl" \ 47 55 OPENSSL_CFLAGS=-I${prefix}/include/openssl \ 48 56 OPENSSL_LIBS="-L${prefix}/lib -lcrypto -lssl" \ 49 PYTHON=${prefix}/bin/python${PythonVersion} \ 50 PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python" 57 PYTHON=${prefix}/bin/python${PythonVersion} 51 58 52 59 destroot.env PYTHONPATH=${destroot}${prefix}/lib/python${PythonVersion}/site-packages/ 53 60 54 61 pre-destroot { 55 62 xinstall -d ${destroot}${prefix}/lib/python${PythonVersion}/site-packages/ 56 63 } 64 65 variant python27 conflicts python35 description {Build using Python 2.7} { 66 configure.env-append PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python" 67 } 68 69 variant python35 conflicts python27 description {Build using Python 3.5} {}