SUMMARY="X.Org autotools utility macros" 
DESCRIPTION="
The X.Org autotools utility macros.
" 
HOMEPAGE="http://cgit.freedesktop.org/xorg/util/macros/" 
COPYRIGHT="2005 Red Hat, Inc.
	2005, 2006, Oracle and/or its affiliates. All rights reserved."
LICENSE="MIT"

SOURCE_URI="http://xorg.freedesktop.org/archive/individual/util/util-macros-1.19.0.tar.bz2"
CHECKSUM_SHA256="2835b11829ee634e19fa56517b4cfc52ef39acea0cd82e15f68096e27cbed0ba"
REVISION="2"

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

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

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	cmd:autoconf
	cmd:aclocal
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	"

SOURCE_DIR="util-macros-$portVersion"

BUILD()
{
	#./autogen.sh -V
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	#fixPkgconfig
	mkdir -p $prefix/develop/lib${secondaryArchSuffix/_//}
	mv -f $prefix/data/pkgconfig $prefix/develop/lib${secondaryArchSuffix/_//}/
}
