source: trunk/dports/devel/protobuf-cpp/Portfile

Last change on this file was 137322, checked in by jeremyhu@…, 2 years ago

protobuf-cpp: Fix a build failure when using a non-default C++ runtime

  • 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 137322 2015-06-09 05:06:34Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup  github 1.0
6
7name            protobuf-cpp
8version         2.6.1
9categories      devel
10maintainers     blair
11license         BSD
12description     Encode data in an efficient yet extensible format.
13conflicts       protobuf3-cpp
14
15long_description \
16                Google Protocol Buffers are a flexible, efficient, \
17                automated mechanism for serializing structured data -- \
18                think XML, but smaller, faster, and simpler.  You \
19                define how you want your data to be structured once, \
20                then you can use special generated source code to \
21                easily write and read your structured data to and from \
22                a variety of data streams and using a variety of \
23                languages.  You can even update your data structure \
24                without breaking deployed programs that are compiled \
25                against the "old" format.  You specify how you want \
26                the information you're serializing to be structured by \
27                defining protocol buffer message types in .proto \
28                files.  Each protocol buffer message is a small \
29                logical record of information, containing a series of \
30                name-value pairs.
31
32github.setup    google protobuf ${version} v
33github.tarball_from releases
34homepage        https://github.com/google/protobuf
35master_sites    https://github.com/google/protobuf/releases/download/v${version}
36distfiles       protobuf-${version}.tar.bz2
37worksrcdir      protobuf-${version}
38
39use_bzip2       yes
40checksums       sha1   6421ee86d8fb4e39f21f56991daa892a3e8d314b \
41                sha256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
42
43platforms       darwin
44
45depends_lib     port:zlib
46
47# 2.6.1's glibtool doesn't pass -stdlib=libc++ to the linker
48use_autoreconf  yes
49autoreconf.args -fvi
50
51configure.cflags-append     -g
52configure.cppflags-append   -g
53
54post-destroot {
55    set docdir ${destroot}${prefix}/share/doc/${name}
56
57    xinstall -d -m 755 ${docdir}
58
59    foreach f {CHANGES.txt CONTRIBUTORS.txt INSTALL.txt LICENSE README.md editors examples} {
60        file copy ${worksrcpath}/${f} ${docdir}
61    }
62}
63
64test.run    yes
65test.cmd    "ulimit -c 0; make"
66test.target check
Note: See TracBrowser for help on using the repository browser.