# -*- 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 github 1.0 name protobuf3-cpp version 0.0.0.1 set real_version 3.0.0-alpha-1 categories devel maintainers blair license BSD description Encode data in an efficient yet extensible format. conflicts protobuf-cpp long_description \ Google Protocol Buffers are a flexible, efficient, \ automated mechanism for serializing structured data -- \ think XML, but smaller, faster, and simpler. You \ define how you want your data to be structured once, \ then you can use special generated source code to \ easily write and read your structured data to and from \ a variety of data streams and using a variety of \ languages. You can even update your data structure \ without breaking deployed programs that are compiled \ against the "old" format. You specify how you want \ the information you're serializing to be structured by \ defining protocol buffer message types in .proto \ files. Each protocol buffer message is a small \ logical record of information, containing a series of \ name-value pairs. github.setup google protobuf-cpp ${real_version} v github.tarball_from releases # REMOVE THE VERSION LINE WHEN THERE IS A GA RELEASE AND LEAVE THE ONE ABOVE version 0.0.0.1 homepage https://github.com/google/protobuf master_sites https://github.com/google/protobuf/releases/download/v${real_version} distfiles protobuf-cpp-${real_version}.tar.gz worksrcdir protobuf-${real_version} pre-fetch { if {${os.platform} eq "darwin" && ${os.major} < 11} { ui_error "${name} uses thread-local storage which is not supported on Mac OS X 10.6 or older." return -code error "incompatible Mac OS X version" } } checksums sha1 5cf937727a90b09e79921944cfcdbd310a5a0234 \ sha256 ece45f4957140edc9517c3e03ca5509f70847d576ca5ae267fa0a8ee20ee1c85 platforms darwin depends_lib port:zlib configure.cflags-append -g configure.cppflags-append -g post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d -m 755 ${docdir} foreach f {CHANGES.txt CONTRIBUTORS.txt INSTALL.txt LICENSE README.md editors examples} { file copy ${worksrcpath}/${f} ${docdir} } } test.run yes test.cmd "ulimit -c 0; make" test.target check