Ticket #47507: Portfile-nghttp2.diff

File Portfile-nghttp2.diff, 1.2 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • Portfile

    old new  
    4343                    OPENSSL_CFLAGS=-I${prefix}/include/openssl \
    4444                    OPENSSL_LIBS="-L${prefix}/lib -lcrypto -lssl" \
    4545                    PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Python"
     46
     47# A compiler supporting C++11 is required to build nghttp2 >= 0.7.12.
     48# The newer, the merrier.
     49# Compilers supporting C++11 are GCC >= 4.6 and clang >= 3.3.
     50# As we only support libc++, clang is required by implicitly.
     51# Blacklist all GCC compilers to not accidentally pull in libstdc++.
     52# We do not know what "cc" is, so blacklist it as well.
     53compiler.blacklist-append   {*gcc*} {clang < 500} macports-clang-2.* \
     54                            {macports-clang-3.[0-2]} cc
     55
     56platform darwin {
     57    pre-configure {
     58        if {${configure.cxx_stdlib} eq "libstdc++"} {
     59            ui_error "This port does not support your selected MacPorts C++ runtime. libc++ must be selected and C++-based ports built against this."
     60            error "libstdc++ unsupported."
     61        }
     62    }
     63}