# -*- 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$ PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 name capnproto version 0.5.3 checksums rmd160 8f7c01ce391325a9de6fcf05539e7d10a439a28d \ sha256 cdb17c792493bdcd4a24bcd196eb09f70ee64c83a3eccb0bc6534ff560536afb maintainers cal openmaintainer platforms darwin categories devel homepage http://capnproto.org/ description \ Cap’n Proto is an insanely fast data interchange format and \ capability-based RPC system. Think JSON, except binary. Or think Protocol \ Buffers, except faster. long_description ${description} license BSD master_sites ${homepage} distname ${name}-c++-${version} patch.pre_args -p2 patchfiles 0001-Avoid-incorrect-library-version-with-BSD-sed.patch use_autoreconf yes # clang 3.2 - clang-3.5 and all clangs from Xcode < 5 crash while compiling this. # see http://llvm.org/bugs/show_bug.cgi?id=18340 compiler.blacklist-append \ {clang < 500.2.75} \ macports-clang-3.3 \ macports-clang-3.4 \ macports-clang-3.5 \ *gcc* # The bundled libtool doesn't pass -stdlib to the linker, needs: # http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commit;h=c0c49f289f22ae670066657c60905986da3b555f pre-configure { if {${configure.compiler} ne "clang" || [compiler_blacklist_versions._version_matches clang < 500.2.75]} { ui_error "capnproto will crash all compilers but clang from Xcode 5; please upgrade your Xcode installation." error "no suitable compiler" } system -W ${worksrcpath} "autoreconf -fvi" } configure.cppflags-replace \ -I${prefix}/include "-isystem ${prefix}/include" configure.cxx_stdlib libc++ if {[string match *clang* ${configure.cxx}]} { configure.ldflags-append -stdlib=libc++ } livecheck.type regex livecheck.url http://capnproto.org/install.html livecheck.regex "[quotemeta ${name}]-c\\+\\+-(\\d+(\\.\\d+)*)[quotemeta ${extract.suffix}]"