DESCRIPTION="Google's C++ logging library"
HOMEPAGE="http://code.google.com/p/google-glog/"
SRC_URI="http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz"
CHECKSUM_MD5="a6fd2c22f8996846e34c763422717c18"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."

BUILD()
{
	cd glog-0.3.3
	sed -i 's/docdir = $(prefix)\/share/docdir = \/boot\/common\/documentation/g' Makefile.am
	libtoolize --force --copy --install
	aclocal -I m4
	autoconf
	DOCDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc
	./configure --prefix=`finddir B_COMMON_DIRECTORY` \
		--docdir=${DOCDIR}
	make
}
	
INSTALL()
{
	cd glog-0.3.3
	make install
}

LICENSE="BSD (3-clause)"
COPYRIGHT="1999-2013 Google Inc."
