|
|
@@ -18,7 +18,6 @@ long_description omniORB is a robust high performance CORBA ORB for C++ and \ |
|
|
homepage http://omniorb.sourceforge.net/ |
|
|
|
|
|
conflicts_build ${name} |
|
|
depends_lib port:python27 |
|
|
|
|
|
master_sites sourceforge:project/omniorb/omniORB/omniORB-${version}/ |
|
|
use_bzip2 yes |
|
|
@@ -32,7 +31,6 @@ post-patch { |
|
|
${worksrcpath}/mk/beforeauto.mk.in |
|
|
} |
|
|
|
|
|
configure.python ${prefix}/bin/python2.7 |
|
|
configure.args CC="${configure.cc}" \ |
|
|
CXX="${configure.cxx}" \ |
|
|
CCFLAGS="[get_canonical_archflags cc]" \ |
|
|
@@ -44,14 +42,45 @@ 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 |
|
|
set python_framework [] |
|
|
|
|
|
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 |
|
|
|
|
|
notes "Install py36-omniORBpy for omniORBpy." |
|
|
} |
|
|
|
|
|
if {![variant_isset python27]} { |
|
|
default_variants +python36 |
|
|
} |
|
|
|
|
|
variant ssl description {Enable SSL support} { |
|
|
configure.args-append --with-openssl |
|
|
depends_lib-append path:lib/libssl.dylib:openssl |
|
|
} |
|
|
|
|
|
notes " |
|
|
Install py27-omniORBpy for omniORBpy. |
|
|
" |
|
|
post-destroot { |
|
|
if {[variant_isset python36]} { |
|
|
# omniORB installs into /opt/local/lib/python3.6/site-packages/ |
|
|
# but omniORBpy installs into /opt/local/Library/Frameworks/Python.framework/Versions/X.Y/ |
|
|
# so adjust locations for this package |
|
|
file mkdir [file normalize ${destroot}${python_framework}] |
|
|
file rename [glob ${destroot}${prefix}/lib/python*] ${destroot}${python_framework} |
|
|
} |
|
|
} |
|
|
|
|
|
livecheck.type regex |
|
|
livecheck.url http://omniorb.sourceforge.net/ |
|
|
|