SUMMARY="libxau"
DESCRIPTION="
libxau.
"
HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/" 
SRC_URI="http://xorg.freedesktop.org/releases/individual/lib/libXau-1.0.5.tar.gz"
CHECKSUM_SHA256="2ad4324cf204331d6773bba441baed58e46168e7913de2079f10b272eae5c4db"
REVISION="1"
COPYRIGHT="1988, 1993, 1994, 1998  The Open Group"
LICENSE="MIT (no promotion)"

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

PROVIDES="
	libxau$secondaryArchSuffix = $portVersion
	lib:libxau$secondaryArchSuffix = $portVersion
	lib:libXau$secondaryArchSuffix = $portVersion
	devel:libxau$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	xproto$secondaryArchSuffix
	"

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

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
	"

SOURCE_DIR="libXau-$portVersion"

PATCHES="libxau-1.0.5.patch"

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

INSTALL()
{
	make install
	prepareInstalledDevelLibs libXau
	fixPkgconfig
}
