# $Id: Portfile 86303 2011-10-24 12:26:54Z ryandesign@macports.org $

PortSystem			1.0
name				autotrace
version				0.31.1
revision			4
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:project/autotrace/AutoTrace/${version}

checksums			md5 54eabbb38d2076ded6d271e1ee4d0783

depends_lib			port:libpng port:pstoedit port:ImageMagick

post-extract {
	file mkdir ${workpath}/bin
	xinstall ${filespath}/pstoedit-config ${workpath}/bin
}

patchfiles			patch-autotrace.m4.diff

configure.args		--mandir=${prefix}/share/man \
					--with-magick \
					--with-pstoedit-prefix=${workpath}

# ccache: invalid option -- d
configure.ccache	no

# in ./.libs/libautotrace.dylib, file was built for unsupported file format which is not the architecture being linked
universal_variant	no

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}
}

livecheck.distname AutoTrace
