SUMMARY="Callback Framework for C++"
DESCRIPTION="A typesafe callback system for standard C++. It allows you to \
define signals and to connect those signals to any callback function, either \
global or a member function, regardless of whether it is static or virtual.

It also contains adaptor classes for connection of dissimilar callbacks and \
has an ease of use unmatched by other C++ callback libraries."

HOMEPAGE="http://libsigc.sourceforge.net/stable.shtml" 
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/libsigc++/1.2/libsigc++-$portVersion.tar.gz"
CHECKSUM_SHA256="c995a4623d9f71455d8c7d62307a13e68e0f8313f47adb7221421455bbdfcb98"
PATCHES="libsigc++-$portVersion.patchset"

REVISION="1"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	libsigc++$secondaryArchSuffix = $portVersion
	lib:libsigc_1.2$secondaryArchSuffix = 0.0.0 compat = 0
"

REQUIRES="
	haiku$secondaryArchSuffix
	lib:libstdc++$secondaryArchSuffix
"

PROVIDES_devel="
	libsigc++${secondaryArchSuffix}_devel = $portVersion
	devel:libsigc_1.2$secondaryArchSuffix = 0.0.0 compat = 0
"

REQUIRES_devel="
	libsigc++$secondaryArchSuffix == $portVersion base
"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
"

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

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	sh autogen.sh
	runConfigure --omit-dirs "docDir dataRootDir" ./configure
	make $jobArgs
}

INSTALL()
{
	make install

	prepareInstalledDevelLib libsigc-1.2
	rm $developLibDir/*.la
	fixPkgconfig

	cp sigc++/config/sigcconfig.h $includeDir

	packageEntries devel $relativeDevelopDir
}

LICENSE="GNU LGPL v2.1"
COPYRIGHT="2002-2005 The libsigc++ Development Team"
