SUMMARY="Pthread functions stubs"
DESCRIPTION="Pthread functions stubs for platforms that don't (yet) provide \
those functions."
HOMEPAGE="https://xcb.freedesktop.org/"
COPYRIGHT="2006 Diego Pettenò"
LICENSE="MIT"
REVISION="4"
SOURCE_URI="https://xcb.freedesktop.org/dist/libpthread-stubs-$portVersion.tar.bz2"
CHECKSUM_SHA256="e4d05911a3165d3b18321cc067fdd2f023f06436e391c6a28dff618a78d2e733"
SOURCE_DIR="libpthread-stubs-$portVersion"

ARCHITECTURES="any"

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

BUILD_REQUIRES="
	haiku_devel
	devel:util_macros
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:gcc
	cmd:libtool
	cmd:make
	cmd:pkg_config
	"

BUILD()
{
	autoreconf -vfi
	runConfigure --omit-dirs libDir ./configure --libdir=$dataDir
}

INSTALL()
{
	make install
}
