SUMMARY="A program to turn bitmaps into vectors"
DESCRIPTION="AutoTrace is a program that can convert bitmaps into \
close vectors. It tries to replicate the image as close as possible while \
still being usable to edit manually. It is made to compete with other \
commercial products that do the same."
HOMEPAGE="http://autotrace.sourceforge.net"
SOURCE_URI="http://sourceforge.net/projects/autotrace/files/AutoTrace/0.31.1/autotrace-0.31.1.tar.gz/download"
SOURCE_DIR="autotrace-0.31.1"
CHECKSUM_SHA256="5a1a923c3335dfd7cbcccb2bbd4cc3d68cafe7713686a2f46a1591ed8a92aff6"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2000-2002 AutoTrace contributors"
PATCHES="autotrace-0.31.1.patchset"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	autotrace$secondaryArchSuffix = $portVersion
	lib:libautotrace$secondaryArchSuffix = $portVersion
	cmd:autotrace$secondaryArchSuffix = $portVersion
	cmd:autotrace_config$secondaryArchSuffix = $portVersion
	"
PROVIDES_devel="
	autotrace${secondaryArchSuffix}_devel = $portVersion
	devel:libautotrace$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"
REQUIRES_devel="
	haiku${secondaryArchSuffix}_devel
	autotrace$secondaryArchSuffix == $portVersion base
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:autoconf
	"

BUILD()
{
	autoconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install

	mkdir -p $developLibDir

	fixPkgconfig

	prepareInstalledDevelLibs \
		libautotrace
	packageEntries devel \
		$developDir
}
