source: trunk/dports/devel/omniORB/Portfile @ 87721

Last change on this file since 87721 was 87721, checked in by stromnov@…, 6 years ago

omniORB: reformat Portfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 87721 2011-12-02 09:31:29Z stromnov@macports.org $
3
4PortSystem          1.0
5
6name                omniORB
7version             4.1.4
8revision            0
9categories          devel
10platforms           darwin
11license             GPL
12
13maintainers         stromnov openmaintainer
14
15description         high performance CORBA ORB for C++
16long_description    omniORB is a robust high performance CORBA ORB for C++ and \
17                    Python. omniORB is largely CORBA 2.6 compliant.
18
19homepage            http://omniorb.sourceforge.net/
20master_sites        sourceforge:omniorb
21
22checksums           md5     1f6070ff9b6339876976d61981eeaa6a \
23                    sha1    7150d999bcef10c6c3cb24725386497c3f338aa1 \
24                    rmd160  b84131230c59b1cef8f714ff1545e44f6779ade1
25
26patchfiles          src_tool_omniidl_cxx_cccp_config-darwin.h.diff
27
28configure.args      --with-omniORB-config="${prefix}/etc/omniORB.cfg" \
29                    --with-omniNames-logdir="${prefix}/var"
30
31if {$build_arch == "x86_64" && ${os.platform} == "darwin"} {
32    configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
33}
34
35post-patch {
36    reinplace "s|,prefix=\'\$PYTHON_PREFIX\'||g" ${worksrcpath}/configure
37    reinplace "s|,prefix=\'\$PYTHON_EXEC_PREFIX\'||g" ${worksrcpath}/configure
38    if {[variant_isset universal]} {
39        system "cd ${worksrcpath} && ed - ./include/omniconfig.h.in < ${filespath}/include_omniconfig.h.in.ed"
40    }
41}
42
43if {[variant_isset universal]} {
44    patchfiles-append mk_beforeauto.mk.in.diff
45    post-configure {
46        system "cd ${worksrcpath} && ed - ./include/omniORB4/acconfig.h < ${filespath}/include_omniORB4_acconfig.h.ed"
47    }
48}
49
50variant ssl description {Enable SSL support} {
51    configure.args-append   --with-openssl
52    depends_lib-append      port:openssl
53}
54
55if { ![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} {
56    default_variants        +python26
57}
58
59variant python24 description {Enable python support with python 2.4} {
60    depends_lib-append      port:python24
61    configure.python        ${prefix}/bin/python2.4
62}
63
64variant python25 description {Enable python support with python 2.5} {
65    depends_lib-append      port:python25
66    configure.python        ${prefix}/bin/python2.5
67}
68
69variant python26 description {Enable python support with python 2.6} {
70    depends_lib-append      port:python26
71    configure.python        ${prefix}/bin/python2.6
72}
73
74platform darwin 8 {
75    # needs -Xarch
76    universal_variant no
77}
78
79livecheck.type      regex
80livecheck.url       http://omniorb.sourceforge.net/
81livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.