source: trunk/dports/devel/thrift/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 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.9 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
5PortGroup       conflicts_build 1.0
6
7name            thrift
8conflicts       thrift-devel
9version         0.9.2
10revision        2
11categories      devel
12license         Apache-2
13maintainers     gmail.com:naoya.n blair openmaintainer
14platforms       darwin
15
16description     framework for scalable cross-language services development
17long_description \
18    Thrift is a software framework for scalable cross-language \
19    services development. It combines a software stack with a code \
20    generation engine to build services that work efficiently and \
21    seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, \
22    Haskell, C#, Cocoa, Smalltalk, and OCaml.
23
24homepage        http://thrift.apache.org/
25master_sites    apache:${name}/${version}
26
27checksums           sha1   02f78b158da795ea89a26ce41964fbe562cc4235 \
28                    rmd160 a858d2ef0e4e41305e43ef42e9cc602915a47c1f \
29                    sha256 cef50d3934c41db5fa7724440cc6f10a732e7a77fe979b98c23ce45725349570
30
31use_parallel_build  no
32
33depends_build       port:bison \
34                    port:boost \
35                    port:libevent \
36                    port:pkgconfig
37depends_lib-append  path:lib/libssl.dylib:openssl
38
39patchfiles          8c12b19e.diff
40patch.pre_args      -p1
41
42post-patch {
43    reinplace \
44        "s#-l:libboost_unit_test_framework\.a#${prefix}/lib/libboost_unit_test_framework-mt.a#g" \
45        ${worksrcpath}/lib/cpp/test/Makefile.in
46    foreach l {filesystem program_options system} {
47        reinplace \
48            "s#-lboost_${l}#-lboost_${l}-mt#g" \
49            ${worksrcpath}/test/cpp/Makefile.in
50    }
51}
52
53conflicts_build     ${name}
54
55configure.args  --with-c_glib=no \
56                --with-csharp=no \
57                --with-d=no \
58                --with-erlang=no \
59                --with-go=no \
60                --with-haskell=no \
61                --with-java=no \
62                --with-lua=no \
63                --with-perl=no \
64                --with-php=no \
65                --with-php_extension=no \
66                --with-python=no \
67                --with-qt4=no \
68                --with-ruby=no
69
70variant java description "enable the Java library" {
71    depends_build-append    bin:ant:apache-ant
72    configure.env-append    JAVA_PREFIX=${prefix}/share/java
73    configure.args-delete   --with-java=no
74    configure.args-append   --with-java=yes
75}
76
77variant csharp description "enable the C# library" {
78    configure.args-delete   --with-csharp=no
79    configure.args-append   --with-csharp=yes
80    depends_lib-append      port:mono
81}
82
83variant glib2 description "enable the C (GLib) library" {
84    configure.args-delete   --with-c_glib=no
85    configure.args-append   --with-c_glib=yes
86    depends_lib-append      path:lib/pkgconfig/glib-2.0.pc:glib2
87}
88
89# doesn't install into destroot
90#variant ruby description "enable the Ruby library" {
91#    configure.args-delete   --with-ruby=no
92#    configure.args-append   --with-ruby=yes
93#    depends_lib-append      port:ruby
94#}
95
96variant haskell description "enable the Haskell library" {
97    configure.args-delete   --with-haskell=no
98    configure.args-append   --with-haskell=yes
99    depends_lib-append      port:ghc \
100                            port:hs-http \
101}
102
103variant php description "enable the PHP library" {
104    configure.env-append    PHP_PREFIX=${prefix}/lib/php
105    configure.args-delete   --with-php=no
106    configure.args-append   --with-php=yes
107    depends_lib-append      path:bin/php:php5
108}
109
110variant erlang description "enable the Erlang library" {
111    configure.args-delete   --with-erlang=no
112    configure.args-append   --with-erlang=yes
113    depends_lib-append      port:erlang
114}
115
116test.run        yes
117test.target     check
118
119livecheck.type  regex
120livecheck.url   http://www.apache.org/dist/thrift/
121livecheck.regex {(\d+(?:\.\d+)*)/}
Note: See TracBrowser for help on using the repository browser.