Ticket #35823: Portfile.diff
File Portfile.diff, 4.3 KB (added by lockhart (Thomas Lockhart), 12 years ago) |
---|
-
Portfile
old new 5 5 6 6 name omniORB 7 7 version 4.1.6 8 revision 08 revision 1 9 9 categories devel 10 10 platforms darwin 11 11 # executables are GPL, libs are LGPL … … 28 28 patchfiles src_tool_omniidl_cxx_cccp_config-darwin.h.diff \ 29 29 include_omniORB4_CORBA_sysdep.h.diff 30 30 31 # Universal variant broken since 4.1.631 # The universal variant has been broken for several years (at least version 4.1.4) 32 32 universal_variant no 33 33 34 configure.args --with-omniORB-config="${prefix}/etc/omniORB.cfg" \ 34 notes \ 35 "To install omniORBpy use the port pyXX_omniORBpy 36 corresponding to the matching python variant selected here." 37 38 configure.args CC="${configure.cc}" \ 39 CXX="${configure.cxx}" \ 40 CCFLAGS="[get_canonical_archflags cc]" \ 41 EXTRA_GCC_CXXFLAGS="[get_canonical_archflags cc]" \ 42 --with-omniORB-config="${prefix}/etc/omniORB.cfg" \ 35 43 --with-omniNames-logdir="${prefix}/var" 44 configure.args-delete --disable-dependency-tracking 36 45 37 46 if {$build_arch == "x86_64" && ${os.platform} == "darwin"} { 38 47 configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} 39 48 } 40 49 50 pre-patch { 51 reinplace "s|-bind_at_load||g" \ 52 ${worksrcpath}/mk/beforeauto.mk.in 53 ui_debug "archflags cc are [get_canonical_archflags cc]" 54 ui_debug "archflags cxx are [get_canonical_archflags cxx]" 55 } 56 41 57 post-patch { 42 reinplace "s|,prefix=\'\$PYTHON_PREFIX\'||g" ${worksrcpath}/configure 43 reinplace "s|,prefix=\'\$PYTHON_EXEC_PREFIX\'||g" ${worksrcpath}/configure 58 reinplace "s|\\(\$(CXXLINKOPTIONS)\\)|\\1 [get_canonical_archflags cc]|g" \ 59 ${worksrcpath}/mk/beforeauto.mk.in 60 61 reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \ 62 ${worksrcpath}/configure 63 reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \ 64 ${worksrcpath}/configure 44 65 if {[variant_isset universal]} { 45 system "cd ${worksrcpath} && ed - ./include/omniconfig.h.in < ${filespath}/include_omniconfig.h.in.ed"66 # system "cd ${worksrcpath} && ed - ./include/omniconfig.h.in < ${filespath}/include_omniconfig.h.in.ed" 46 67 } 47 68 } 48 69 49 70 if {[variant_isset universal]} { 50 patchfiles-append mk_beforeauto.mk.in.diff71 # patchfiles-append mk_beforeauto.mk.in.diff 51 72 post-configure { 52 system "cd ${worksrcpath} && ed - ./include/omniORB4/acconfig.h < ${filespath}/include_omniORB4_acconfig.h.ed"73 # system "cd ${worksrcpath} && ed - ./include/omniORB4/acconfig.h < ${filespath}/include_omniORB4_acconfig.h.ed" 53 74 } 54 75 } 55 76 77 # Need an empty universal variant defined to get the correct set of -arch arguments 78 variant universal {} 79 56 80 variant ssl description {Enable SSL support} { 57 81 configure.args-append --with-openssl 58 82 depends_lib-append port:openssl 59 83 } 60 84 61 if { 62 default_variants +python2 785 if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} { 86 default_variants +python24 63 87 } 64 88 65 89 variant python24 description {Enable python support with python 2.4} { 90 notes-append "For this omniORB variant install py24-omniORBpy" 66 91 depends_lib-append port:python24 67 92 configure.python ${prefix}/bin/python2.4 68 93 } 69 94 70 95 variant python25 description {Enable python support with python 2.5} { 96 notes-append "For this omniORB variant install py25-omniORBpy" 71 97 depends_lib-append port:python25 72 98 configure.python ${prefix}/bin/python2.5 73 99 } 74 100 75 101 variant python26 description {Enable python support with python 2.6} { 102 notes-append "For this omniORB variant install py26-omniORBpy" 76 103 depends_lib-append port:python26 77 104 configure.python ${prefix}/bin/python2.6 78 105 } 79 106 80 107 variant python27 description {Enable python support with python 2.7} { 108 notes-append "For this omniORB variant install py27-omniORBpy" 81 109 depends_lib-append port:python27 82 110 configure.python ${prefix}/bin/python2.7 83 111 }