source: trunk/dports/devel/capnproto/Portfile

Last change on this file was 148226, checked in by cal@…, 17 months ago

capnproto: 0.5.3

Increase revision of textmate2 because the library name changed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 148226 2016-04-30 17:09:19Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               compiler_blacklist_versions 1.0
6
7name                    capnproto
8version                 0.5.3
9checksums               rmd160  8f7c01ce391325a9de6fcf05539e7d10a439a28d \
10                        sha256  cdb17c792493bdcd4a24bcd196eb09f70ee64c83a3eccb0bc6534ff560536afb
11
12maintainers             cal openmaintainer
13platforms               darwin
14categories              devel
15
16homepage                http://capnproto.org/
17description             \
18    Capn Proto is an insanely fast data interchange format and \
19    capability-based RPC system. Think JSON, except binary. Or think Protocol \
20    Buffers, except faster.
21long_description        ${description}
22license                 BSD
23
24master_sites            ${homepage}
25distname                ${name}-c++-${version}
26
27patch.pre_args          -p2
28patchfiles              0001-Avoid-incorrect-library-version-with-BSD-sed.patch
29
30use_autoreconf          yes
31
32# clang 3.2 - clang-3.5 and all clangs from Xcode < 5 crash while compiling this.
33# see http://llvm.org/bugs/show_bug.cgi?id=18340
34compiler.blacklist-append \
35                        {clang < 500.2.75} \
36                        macports-clang-3.3 \
37                        macports-clang-3.4 \
38                        macports-clang-3.5 \
39                        *gcc*
40
41# The bundled libtool doesn't pass -stdlib to the linker, needs:
42# http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commit;h=c0c49f289f22ae670066657c60905986da3b555f
43pre-configure {
44    if {${configure.compiler} ne "clang" || [compiler_blacklist_versions._version_matches clang < 500.2.75]} {
45        ui_error "capnproto will crash all compilers but clang from Xcode 5; please upgrade your Xcode installation."
46        error "no suitable compiler"
47    }
48    system -W ${worksrcpath} "autoreconf -fvi"
49}
50
51configure.cppflags-replace \
52                        -I${prefix}/include "-isystem ${prefix}/include"
53
54configure.cxx_stdlib    libc++
55if {[string match *clang* ${configure.cxx}]} {
56    configure.ldflags-append    -stdlib=libc++
57}
58
59livecheck.type              regex
60livecheck.url               http://capnproto.org/install.html
61livecheck.regex             "[quotemeta ${name}]-c\\+\\+-(\\d+(\\.\\d+)*)[quotemeta ${extract.suffix}]"
Note: See TracBrowser for help on using the repository browser.