# -*- 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
PortGroup conflicts_build 1.0
# executables are GPL, libs are LGPL
description high performance CORBA ORB for C++
long_description omniORB is a robust high performance CORBA ORB for C++ and \
Python. omniORB is largely CORBA 2.6 compliant.
homepage http://omniorb.sourceforge.net/
master_sites sourceforge:project/omniorb/omniORB/omniORB-${version}/
checksums rmd160 7359ed80651c1543e3f13c2f9ee7162293d58497 \
sha256 ddd909ce31014be2beebf67a5e9fabbf03b5bb0c26b8c53ab64d470d77348ece
patchfiles patch-configure.diff \
src_tool_omniidl_cxx_cccp_config-darwin.h.diff
reinplace "s|\\(\$(CXXLINKOPTIONS)\\)|\\1 [get_canonical_archflags cxx]|g" \
${worksrcpath}/mk/beforeauto.mk.in
configure.args CC="${configure.cc}" \
CCFLAGS="[get_canonical_archflags cc]" \
EXTRA_GCC_CXXFLAGS="[get_canonical_archflags cxx]" \
--with-omniORB-config="${prefix}/etc/omniORB.cfg" \
--with-omniNames-logdir="${prefix}/var"
if {${build_arch} eq "x86_64" && ${os.platform} eq "darwin"} {
configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
# force a global variable
variant python27 conflicts python36 description {Build Python 2.7 IDL support} {
configure.python ${prefix}/bin/python2.7
set python_framework ${frameworks_dir}/Python.framework/Versions/2.7/lib
depends_lib-append port:python27
configure.pkg_config_path ${python_framework}/lib/pkgconfig
notes "Install py27-omniORBpy for omniORBpy."
variant python36 conflicts python27 description {Build Python 3.6 IDL support} {
configure.python ${prefix}/bin/python3.6
set python_framework ${frameworks_dir}/Python.framework/Versions/3.6/lib
depends_lib-append port:python36
configure.pkg_config_path ${python_framework}/lib/pkgconfig