SUMMARY="xcb-proto"
DESCRIPTION="
xcb-proto.
"
HOMEPAGE="http://xcb.freedesktop.org/" 
SRC_URI="http://xcb.freedesktop.org/dist/xcb-proto-1.6.tar.gz"
CHECKSUM_MD5="8d29695e8faf5fcdce568c66eaeaa5ee"
REVISION="1"
COPYRIGHT="2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett."
LICENSE="MIT (no promotion)"

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

PROVIDES="
	xcb_proto$secondaryArchSuffix = $portVersion
	devel:xcb_proto$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	"

BUILD_REQUIRES="
	"

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

SOURCE_DIR="xcb-proto-$portVersion"

GLOBAL_WRITABLE_FILES="
	non-packaged/lib/python2.6/site-packages directory keep-old
	"

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

INSTALL()
{
	make install DESTDIR=/
	fixPkgconfig
}
