SUMMARY="X.Org X authorization library"
DESCRIPTION="
The X.Org X authorization library.
"
HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/" 
SOURCE_URI="http://xorg.freedesktop.org/releases/individual/lib/libXau-1.0.8.tar.bz2"
CHECKSUM_SHA256="fdd477320aeb5cdd67272838722d6b7d544887dfe7de46e1e7cc0c27c2bea4f2"
REVISION="2"
COPYRIGHT="1988, 1993, 1994, 1998  The Open Group"
LICENSE="MIT (no promotion)"

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

#TODO: make a _devel package ?
PROVIDES="
	libxau$secondaryArchSuffix = $portVersion
	lib:libxau$secondaryArchSuffix = $portVersion
	lib:libXau$secondaryArchSuffix = $portVersion
	devel:libxau$secondaryArchSuffix = $portVersion
	devel:libXau$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	xproto$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku$secondaryArchSuffix
	devel:xproto$secondaryArchSuffix
	"

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="libXau-$portVersion"

PATCHES="libxau-1.0.8.patch"

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

INSTALL()
{
	make install
	prepareInstalledDevelLibs libXau
	fixPkgconfig
}
