# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $
PortSystem        1.0
name              omniORB
version           4.1.3

categories        devel
platforms         darwin
maintainers       cam.ac.uk:gr281
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/

distname          omniORB-${version}
master_sites      sourceforge:omniorb
checksums         md5     8a7b583e98ee78f10d8c43014dcaa923 \
                  sha1    7af7181b5b3217287bd8471ab0145cbd729cf988 \
                  rmd160  4989cfdf5fb7d81242af8de9db4e3da003394b26

configure.args    --with-omniORB-config="${prefix}/etc/omniORB.cfg" \
                  --with-omniNames-logdir="${prefix}/var"

variant ssl {
	configure.args-append --with-openssl
	depends_lib-append    port:openssl
}

if {![variant_isset python25] && ![variant_isset python26]} {
	default_variants   +python25
}

variant python25 description {Enable python support with python 2.5} {
	depends_lib-append port:python25
	configure.python   ${prefix}/bin/python2.5
}

variant python26 description {Enable python support with python 2.6} {
	depends_lib-append port:python26
	configure.python   ${prefix}/bin/python2.6
}

