DESCRIPTION="clang: an llvm front end compiler for C and C++" 
HOMEPAGE="http://www.llvm.org/"
SOURCE_URI="http://llvm.org/releases/3.0/llvm-3.0.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="groff"
CHECKSUM_MD5="a8e5f5f1c1adebae7b4a654c376a6005"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD()
{
	cd llvm-3.0.src/tools
	wget "http://llvm.org/releases/3.0/clang-3.0.tar.gz"
	echo "Extracting clang llvm tool..."
	tar xzf clang-3.0.tar.gz
	mv clang-3.0.src clang
	cd ..
	./configure --enable-optimized --prefix=`finddir B_COMMON_DIRECTORY`
	make
}

INSTALL()
{
	cd llvm-3.0.src
	make install
}

LICENSE="UIUC"
COPYRIGHT="2003-2010 University of Illinois at Urbana-Champaign"
