DESCRIPTION="D is a systems programming language." 
HOMEPAGE="http://digitalmars.com/d/1.0/index.html" 
SOURCE_URI="http://ftp.digitalmars.com/dmd.1.064.zip"
REVISION="1"
CHECKSUM_MD5="3d73758a7006397c2e66021532e2ff73"
MESSAGE="This port only builds with gcc4.  Use 'setgcc gcc4' before building."
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
	cd ./dmd/src/dmd
	make -f haiku.mak
	strip dmd
}

INSTALL()
{
	mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
	cp dmd/src/dmd/dmd ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/dmd
	
}
LICENSE="Digital Mars"
COPYRIGHT="1999-2010, Digital Mars"
