# $Id: Portfile 32256 2007-12-23 09:18:47Z ryandesign@macports.org $

PortSystem			1.0
name				autotrace
version				0.31.1
revision			1
categories			graphics
maintainers			nomaintainer
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			port:libpng

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
}

livecheck.distname AutoTrace
