SUMMARY="GD is an open source library for the dynamic creation of images by programmers." 
DESCRIPTION="GD is an open source library for the dynamic creation of images by programmers." 
HOMEPAGE="http://www.libgd.org" 
SRC_URI="https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0.tar.xz"
CHECKSUM_SHA256="fa6665dfe3d898019671293c84d77067a3d2ede50884dbcb6df899d508370e5a"
REVISION="1"
COPYRIGHT="1999-2013 "
LICENSE="LIBGD"

ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	gd = $portVersion
	cmd:gd
	"

REQUIRES="
	haiku >= $haikuVersion
	lib:libpng
	lib:libjpeg
	lib:libgif
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:gcc
	cmd:cmake
	cmd:make
	"

BUILD()
{
	echo libdir=$libDir
	libtoolize --force --copy --install
	aclocal -I config
	autoconf
	automake
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}

