# $Id: Portfile,v 1.5 2005/10/19 08:10:11 blb Exp $

PortSystem			1.0
name				potrace
version				1.7
categories			graphics
maintainers			blb@opendarwin.org
description			Transform bitmaps into vector graphics
long_description \
	Potrace is a utility for tracing a bitmap, which means, transforming a \
	bitmap into a smooth, scalable image.  The input is a bitmap (PBM, PGM, \
	PPM, or BMP), and the default output is one of several vector file \
	formats.  A typical use is to create EPS files from scanned data, such \
	as company or university logos, handwritten notes, etc.  The resulting \
	image is not "jaggy" like a bitmap, but smooth. It can then be rendered \
	at any resolution.

platforms			darwin

homepage			http://potrace.sourceforge.net/
master_sites		${homepage}download/

checksums			md5 8bfaabf935c03643a6875bde36fe6302 \
					sha1 281d041c97c48a8f469b9951c8d778774128dbf5

depends_lib			lib:libz:zlib

configure.args		--mandir=${prefix}/share/man

post-destroot {
	xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
		NEWS README ${destroot}/${prefix}/share/doc/${name}
}

variant metric_default {
	configure.args-append	--enable-metric
}

variant a4_default {
	configure.args-append	--enable-a4
}

