DESCRIPTION="Zopfli Compression Algorithm is a zlib (gzip, deflate) compatible compressor." 
HOMEPAGE="http://code.google.com/p/zopfli" 
SOURCE_URI="git+https://code.google.com/p/zopfli/"
#CHECKSUM_MD5="abc123"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."	

BUILD()
{
	cd zopfli-999
	sed -i 's/\-lm//' makefile
	make
}

INSTALL()
{
	cd zopfli-999
	BINDIR=${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`
	mkdir -p ${BINDIR}
	cp -r zopfli ${BINDIR}/zopfli 
}

LICENSE="Apache v2"
COPYRIGHT="2011-2013 Google Inc."
