SUMMARY="Pthread functions stubs for platforms missing them" 
DESCRIPTION="
Pthread functions stubs for platforms missing them.
" 
HOMEPAGE="http://xcb.freedesktop.org/" 
SOURCE_URI="http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.gz"
CHECKSUM_SHA256="3031f466cf0b06de6b3ccbf2019d15c4fcf75229b7d226a711bc1885b3a82cde"
REVISION="2"

COPYRIGHT="2006 Diego Pettenò"
LICENSE="MIT"

ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	libpthread_stubs$secondaryArchSuffix = $portVersion
	devel:libpthread_stubs$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:util_macros$secondaryArchSuffix
	cmd:autoconf
	cmd:libtool
	cmd:aclocal
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:pkg_config$secondaryArchSuffix
	"

SOURCE_DIR="libpthread-stubs-$portVersion"

BUILD()
{
	libtoolize --force --copy --install
	autoreconf -i
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	fixPkgconfig
}
