SUMMARY="A library for the dynamic creation of images" 
DESCRIPTION="GD is an open source library for the dynamic creation of images \
by programmers." 
HOMEPAGE="http://www.libgd.org" 
SOURCE_URI="https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0.tar.xz"
CHECKSUM_SHA256="fa6665dfe3d898019671293c84d77067a3d2ede50884dbcb6df899d508370e5a"
REVISION="2"
COPYRIGHT="1999-2013 Pierre-Alain Joye"
LICENSE="Libgd"

ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	gd = $portVersion
	cmd:gd
	"
REQUIRES="
	haiku
	lib:libpng
	lib:libjpeg
	lib:libgif
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:autoconf
	cmd:aclocal
	cmd:cmake
	cmd:gcc
	cmd:libtoolize
	cmd:make
	"

SOURCE_DIR="libgd-$portVersion"

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

INSTALL()
{
	make install
}
