Ticket #33226: Portfile

File Portfile, 3.6 KB (added by lockhart (Thomas Lockhart), 13 years ago)

Complete Portfile which installs Python libraries into /opt/local/Library/Frameworks/... rather than in /opt/local/lib/... since the latter is not in the macports python search path. Will post a similar update for omniORBpy. Also bumped the revision number.

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.6
8revision            1
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
22use_bzip2           yes
23checksums           md5     44990f8139c349b53ab43110de6c629b \
24                    sha1    383e3b3b605188fe6358316917576e0297c4e1a6 \
25                    rmd160  a0ba42721a1932d29abeb37dff0dc3ea7a9ddce6
26
27patchfiles          src_tool_omniidl_cxx_cccp_config-darwin.h.diff \
28                    patch-CORBA_sysdep.h.diff
29
30configure.args      --with-omniORB-config="${prefix}/etc/omniORB.cfg" \
31                    --with-omniNames-logdir="${prefix}/var"
32
33notes \
34"To install omniORBpy use the port pyXX_omniORBpy
35corresponding to the matching python variant selected here."
36
37if {$build_arch == "x86_64" && ${os.platform} == "darwin"} {
38    configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
39}
40
41post-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
53universal_variant   no
54if {[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
61variant ssl description {Enable SSL support} {
62    configure.args-append   --with-openssl
63    depends_lib-append      port:openssl
64}
65
66if { ![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27] } {
67    default_variants        +python27
68}
69
70variant 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
76variant 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
82variant 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
88variant 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
94platform darwin 8 {
95    # needs -Xarch
96    universal_variant no
97}
98
99livecheck.type      regex
100livecheck.url       http://omniorb.sourceforge.net/
101livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)"