# $Id: Portfile,v 1.3 2005/10/19 08:10:09 blb Exp $

PortSystem			1.0
name				autotrace
version				0.31.1
revision			1
categories			graphics
maintainers			blb@opendarwin.org
description			Convert bitmap to vector graphics
long_description \
	The aim of the AutoTrace project is the development of a freely \
	available application with a functionality similar to CorelTrace or \
	Adobe Streamline. I hope that it will become better than all \
	commercially available programs.  In some aspects it is already better. \
	AutoTrace is free software. AutoTrace is distributed under the term \
	of GNU GPL.

platforms			darwin

homepage			http://autotrace.sourceforge.net/
master_sites		sourceforge

checksums			md5 54eabbb38d2076ded6d271e1ee4d0783

depends_lib			lib:libpng:libpng

configure.env		CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args		--without-magick --mandir=${prefix}/share/man

post-destroot {
	xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LIB ChangeLog \
		FAQ HACKING INSTALL NEWS README README.MING THANKS TODO \
		${destroot}/${prefix}/share/doc/${name}
}

variant magick {
	depends_lib-append		lib:libMagick:ImageMagick
	configure.args-delete	--without-magick
	configure.args-append	--with-magick
}

