SUMMARY="Library for creating CORBA Interface Definition Language files"
DESCRIPTION="
libIDL is a library for creating trees of CORBA Interface Definition Language \
(IDL) files, which is a specification for defining portable interfaces. libIDL \
was initially written for ORBit (the ORB from the GNOME project, and the \
primary means of libIDL distribution). However, the functionality was designed \
to be as reusable and portable as possible.
"
HOMEPAGE="http://andrewtv.org/libIDL/"
SRC_URI="http://andrewtv.org/libIDL/libIDL-0.6.8.tar.gz"
CHECKSUM_MD5="97e2da9229cdb0445719b6cf802c1782"
COPYRIGHT="1998-1999 Andrew T. Veliath"
LICENSE="GNU LGPL v2"
REVISION="1"
ARCHITECTURES="x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"

PROVIDES="
	libidl$secondaryArchSuffix = $portVersion
	lib:libIDL$secondaryArchSuffix = $portVersion compat = 0.4.4
	lib:libIDL_0.6$secondaryArchSuffix = $portVersion compat = 0.4.4
	"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	lib:libglib
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	devel:libglib$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:libtoolize
	cmd:autoconf
	cmd:flex
	cmd:bison
	"

PROVIDES_devel="
	libidl${secondaryArchSuffix}_devel = $portVersion
	cmd:libIDL_config = $portVersion
	devel:libIDL$secondaryArchSuffix = $portVersion
	devel:libIDL_0.6$secondaryArchSuffix = $portVersion
	"

REQUIRES_devel="
	libidl$secondaryArchSuffix == $portVersion
	"

SOURCE_DIR="libIDL-$portVersion"

PATCHES="libidl-0.6.8.patchset"

BUILD()
{
	libtoolize -fci
	aclocal
	autoconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install

	prepareInstalledDevelLibs libIDL libIDL-0.6

	fixDevelopLibDirReferences $binDir/libIDL-config \
		$libDir/libIDLConf.sh

	packageEntries devel \
		$developDir $binDir \
		$dataDir $infoDir \
		$libDir/libIDLConf.sh
}
