# Template file for 'ORBit2'
pkgname=ORBit2
version=2.14.19
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libglib-devel libIDL-devel"
short_desc="Thin/fast CORBA ORB"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2, LGPL-2.1"
homepage="http://projects.gnome.org/ORBit2/"
distfiles="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${version}.tar.bz2"
checksum=55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550
long_desc="
 ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB) featuring mature C,
 C++ and Python bindings. Bindings (in various degrees of completeness) are also
 available for Perl, Lisp, Pascal, Ruby, and TCL; others are in-progress. It
 supports POA, DII, DSI, TypeCode, Any, IR and IIOP. Optional features including
 INS and threading are available. ORBit2 is engineered for the desktop
 workstation environment, with a focus on performance, low resource usage, and
 security. The core ORB is written in C, and runs under Linux, UNIX (BSD,
 Solaris, HP-UX, ...), and Windows. ORBit2 is developed and released as open
 source software under GPL/LGPL."

libORBit2_package() {
	short_desc+=" - Runtime library"
	pkg_install() {
		vmove "usr/lib/*.so*"
		vmove "usr/lib/orbit-2.0/*.so*"
	}
}

ORBit2-devel_package() {
	depends="libglib-devel libIDL-devel libORBit2>=${version}"
	short_desc+=" - development files"
	pkg_install() {
		vmove "usr/lib/*.a"
		vmove "usr/lib/orbit-2.0/*.a"
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/idl
		vmove usr/share/aclocal
	}
}

ORBit2_package() {
	pkg_install() {
		vmove all
	}
}