source: trunk/dports/devel/thrift-devel/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            thrift-devel
7conflicts       thrift
8version         1372257
9revision        1
10categories      devel
11license         Apache-2
12maintainers     gmail.com:naoya.n blair openmaintainer
13platforms       darwin
14
15description     framework for scalable cross-language services development
16long_description \
17    Thrift is a software framework for scalable cross-language \
18    services development. It combines a software stack with a code \
19    generation engine to build services that work efficiently and \
20    seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, \
21    Haskell, C#, Cocoa, Smalltalk, and OCaml.
22
23homepage        http://thrift.apache.org/
24fetch.type      svn
25svn.url         https://svn.apache.org/repos/asf/thrift/trunk
26svn.revision    ${version}
27
28worksrcdir      [file tail ${svn.url}]
29
30use_parallel_build  no
31
32depends_build       port:autoconf \
33                    port:automake \
34                    port:boost \
35                    port:libtool \
36                    port:pkgconfig
37depends_lib-append  path:lib/libssl.dylib:openssl
38
39pre-configure {
40    system "cd ${worksrcpath} && ./bootstrap.sh"
41
42    # Remove when https://issues.apache.org/jira/browse/THRIFT-1614 is
43    # fixed.
44    reinplace "s|thrifty\.h|thrifty.hh|g" \
45        ${worksrcpath}/compiler/cpp/src/thriftl.ll
46}
47
48configure.args  --with-c_glib=no \
49                --with-csharp=no \
50                --with-d=no \
51                --with-erlang=no \
52                --with-go=no \
53                --with-haskell=no \
54                --with-java=no \
55                --with-perl=no \
56                --with-php=no \
57                --with-php_extension=no \
58                --with-python=no \
59                --with-qt4=no \
60                --with-ruby=no
61
62variant java description "enable the Java library" {
63    depends_build-append    bin:ant:apache-ant
64    configure.env-append    JAVA_PREFIX=${prefix}/share/java
65    configure.args-delete   --with-java=no
66    configure.args-append   --with-java=yes
67}
68
69variant csharp description "enable the C# library" {
70    configure.args-delete   --with-csharp=no
71    configure.args-append   --with-csharp=yes
72    depends_lib-append      port:mono
73}
74
75variant glib2 description "enable the C (GLib) library" {
76    configure.args-delete   --with-c_glib=no
77    configure.args-append   --with-c_glib=yes
78    depends_lib-append      path:lib/pkgconfig/glib-2.0.pc:glib2
79}
80
81# doesn't install into destroot
82#variant ruby description "enable the Ruby library" {
83#    configure.args-delete   --with-ruby=no
84#    configure.args-append   --with-ruby=yes
85#    depends_lib-append      port:ruby
86#}
87
88variant haskell description "enable the Haskell library" {
89    configure.args-delete   --with-haskell=no
90    configure.args-append   --with-haskell=yes
91    depends_lib-append      port:ghc \
92                            port:hs-http \
93}
94
95variant php description "enable the PHP library" {
96    configure.env-append    PHP_PREFIX=${prefix}/lib/php
97    configure.args-delete   --with-php=no
98    configure.args-append   --with-php=yes
99    depends_lib-append      path:bin/php:php5
100}
101
102variant erlang description "enable the Erlang library" {
103    configure.args-delete   --with-erlang=no
104    configure.args-append   --with-erlang=yes
105    depends_lib-append      port:erlang
106}
107
108# See https://issues.apache.org/jira/browse/THRIFT-1348.
109variant qt4 description "enable non-blocking thrift server for use within Qt" {
110    configure.args-delete   --with-qt4=no
111    configure.args-append   --with-qt4=yes
112    depends_lib-append      port:qt4-mac
113}
114
115livecheck.type  regex
116livecheck.url   http://www.apache.org/dist/thrift/
117livecheck.regex {(\d+(?:\.\d+)*)/}
Note: See TracBrowser for help on using the repository browser.