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 87721 2011-12-02 09:31:29Z stromnov@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name omniORB |
---|
7 | version 4.1.6 |
---|
8 | revision 1 |
---|
9 | categories devel |
---|
10 | platforms darwin |
---|
11 | license GPL |
---|
12 | |
---|
13 | maintainers stromnov openmaintainer |
---|
14 | |
---|
15 | description high performance CORBA ORB for C++ |
---|
16 | long_description omniORB is a robust high performance CORBA ORB for C++ and \ |
---|
17 | Python. omniORB is largely CORBA 2.6 compliant. |
---|
18 | |
---|
19 | homepage http://omniorb.sourceforge.net/ |
---|
20 | master_sites sourceforge:omniorb |
---|
21 | |
---|
22 | use_bzip2 yes |
---|
23 | checksums md5 44990f8139c349b53ab43110de6c629b \ |
---|
24 | sha1 383e3b3b605188fe6358316917576e0297c4e1a6 \ |
---|
25 | rmd160 a0ba42721a1932d29abeb37dff0dc3ea7a9ddce6 |
---|
26 | |
---|
27 | patchfiles src_tool_omniidl_cxx_cccp_config-darwin.h.diff \ |
---|
28 | patch-CORBA_sysdep.h.diff |
---|
29 | |
---|
30 | configure.args --with-omniORB-config="${prefix}/etc/omniORB.cfg" \ |
---|
31 | --with-omniNames-logdir="${prefix}/var" |
---|
32 | |
---|
33 | notes \ |
---|
34 | "To install omniORBpy use the port pyXX_omniORBpy |
---|
35 | corresponding to the matching python variant selected here." |
---|
36 | |
---|
37 | if {$build_arch == "x86_64" && ${os.platform} == "darwin"} { |
---|
38 | configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} |
---|
39 | } |
---|
40 | |
---|
41 | post-patch { |
---|
42 | # reinplace "s|,prefix=\'\$PYTHON_PREFIX\'||g" ${worksrcpath}/configure |
---|
43 | reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \ |
---|
44 | ${worksrcpath}/configure |
---|
45 | # reinplace "s|,prefix=\'\$PYTHON_EXEC_PREFIX\'||g" ${worksrcpath}/configure |
---|
46 | reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \ |
---|
47 | ${worksrcpath}/configure |
---|
48 | if {[variant_isset universal]} { |
---|
49 | system "cd ${worksrcpath} && ed - ./include/omniconfig.h.in < ${filespath}/include_omniconfig.h.in.ed" |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | universal_variant no |
---|
54 | if {[variant_isset universal]} { |
---|
55 | patchfiles-append mk_beforeauto.mk.in.diff |
---|
56 | post-configure { |
---|
57 | system "cd ${worksrcpath} && ed - ./include/omniORB4/acconfig.h < ${filespath}/include_omniORB4_acconfig.h.ed" |
---|
58 | } |
---|
59 | } |
---|
60 | |
---|
61 | variant ssl description {Enable SSL support} { |
---|
62 | configure.args-append --with-openssl |
---|
63 | depends_lib-append port:openssl |
---|
64 | } |
---|
65 | |
---|
66 | if { ![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27] } { |
---|
67 | default_variants +python27 |
---|
68 | } |
---|
69 | |
---|
70 | variant python24 description {Enable python support with python 2.4} { |
---|
71 | notes-append "For this omniORB variant install py24_omniORBpy" |
---|
72 | depends_lib-append port:python24 |
---|
73 | configure.python ${prefix}/bin/python2.4 |
---|
74 | } |
---|
75 | |
---|
76 | variant python25 description {Enable python support with python 2.5} { |
---|
77 | notes-append "For this omniORB variant install py25_omniORBpy" |
---|
78 | depends_lib-append port:python25 |
---|
79 | configure.python ${prefix}/bin/python2.5 |
---|
80 | } |
---|
81 | |
---|
82 | variant python26 description {Enable python support with python 2.6} { |
---|
83 | notes-append "For this omniORB variant install py26_omniORBpy" |
---|
84 | depends_lib-append port:python26 |
---|
85 | configure.python ${prefix}/bin/python2.6 |
---|
86 | } |
---|
87 | |
---|
88 | variant python27 description {Enable python support with python 2.7} { |
---|
89 | notes-append "For this omniORB variant install py27_omniORBpy" |
---|
90 | depends_lib-append port:python27 |
---|
91 | configure.python ${prefix}/bin/python2.7 |
---|
92 | } |
---|
93 | |
---|
94 | platform darwin 8 { |
---|
95 | # needs -Xarch |
---|
96 | universal_variant no |
---|
97 | } |
---|
98 | |
---|
99 | livecheck.type regex |
---|
100 | livecheck.url http://omniorb.sourceforge.net/ |
---|
101 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)" |
---|