| 434 | variant libstdcxx description {cause -stdlib=libstdc++ to search for MacPorts GCC} { |
| 435 | depends_lib-append port:gcc6 |
| 436 | |
| 437 | patchfiles-append patch-macports-libstdcxx.diff |
| 438 | |
| 439 | post-patch { |
| 440 | reinplace "s|@@MACPORTS_GCC_INCLUDE_DIR@@|${prefix}/include/gcc6/c++|g" \ |
| 441 | ${worksrcpath}/tools/clang/lib/Frontend/InitHeaderSearch.cpp |
| 442 | reinplace "s|@@MACPORTS_HOST_NAME@@|${build_arch}-apple-darwin${os.major}|g" \ |
| 443 | ${worksrcpath}/tools/clang/lib/Frontend/InitHeaderSearch.cpp |
| 444 | reinplace "s|@@MACPORTS_libstdc++@@|${prefix}/lib/libgcc/libstdc++.6.dylib|g" \ |
| 445 | ${worksrcpath}/tools/clang/lib/Driver/ToolChains.cpp |
| 446 | } |
| 447 | } |
| 448 | default_variants +libstdcxx |
| 449 | |