# -*- 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
PortGroup conflicts_build 1.0
maintainers {blair @blair} openmaintainer
description framework for scalable cross-language services development
Thrift is a software framework for scalable cross-language \
services development. It combines a software stack with a code \
generation engine to build services that work efficiently and \
seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, \
Haskell, C#, Cocoa, Smalltalk, and OCaml.
homepage http://thrift.apache.org/
master_sites apache:${name}/${version}
checksums sha1 5c67fb6d2e01fa4ee02823a9c577f4d985f0ecfe \
rmd160 cf7d49bf4d39c980c7549088e947c12df4d1046d \
sha256 2289d02de6e8db04cbbabb921aeb62bfe3098c4c83f36eec6c31194301efa10b
depends_build port:autoconf \
depends_lib-append path:lib/libssl.dylib:openssl
"s#libboost_unit_test_framework\.a#libboost_unit_test_framework-mt.dylib#g" \
${worksrcpath}/configure.ac
foreach l {chrono filesystem program_options system thread} {
"s#libboost_${l}\.a#libboost_${l}-mt.dylib#g" \
${worksrcpath}/configure.ac
# Create these files otherwise automake fails.
system -W ${worksrcpath} "touch AUTHORS ChangeLog NEWS README"
configure.args --with-c_glib=no \
--with-php_extension=no \
configure.cppflags-append -DBOOST_TEST_DYN_LINK
variant java description "enable the Java library" {
depends_build-append bin:ant:apache-ant
configure.env-append JAVA_PREFIX=${prefix}/share/java
configure.args-delete --with-java=no
configure.args-append --with-java=yes
variant csharp description "enable the C# library" {
configure.args-delete --with-csharp=no
configure.args-append --with-csharp=yes
depends_lib-append port:mono
variant glib2 description "enable the C (GLib) library" {
configure.args-delete --with-c_glib=no
configure.args-append --with-c_glib=yes