DESCRIPTION="cmake - Cross platform Make" 
HOMEPAGE="http://www.cmake.org" 
SRC_URI="http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz"
CHECKSUM_MD5="097278785da7182ec0aea8769d06860c"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
	cd cmake-2.8.10.2
	# cmake assumes the aclocal dir is in share/aclocal
	sed -i 's/share\/aclocal/data\/aclocal/g' Source/cmakemain.cxx 
	sed -i 's/share\/aclocal/data\/aclocal/g' Utilities/CMakeLists.txt
	
	./configure --prefix=`finddir B_COMMON_DIRECTORY` \
		--datadir=/data/cmake \
		--docdir=/documentation/doc/CMake \
		--mandir=/documentation/man
	make
}

INSTALL()
{
	cd cmake-2.8.10.2
	make install
}

LICENSE="CMake"
COPYRIGHT="2002-2012 Kitware, Inc., Insight Consortium, All rights reserved."
