# $Id: Portfile,v 1.1 2006/04/15 17:45:24 mww Exp $

PortSystem			1.0
name				ps2eps
version				1.58
categories			print
maintainers			darwinports@opendarwin.org
homepage			http://www.tm.uka.de/~bless/ps2eps
description			PostScript to Encapsulated Postscript (EPS) conversion utility

long_description   	ps2eps is a tool (written in Perl) to produce Encapsulated \
					Postscript Files (EPS/EPSF) from usual one-paged Postscript \
					documents. It calculates correct bounding boxes for those \
					EPS files and filters some special postscript command \
					sequences that can produce erroneous results on printers. \
					EPS files are often needed for including (scalable) graphics \
					of high quality into TeX/LaTeX (or even Word) documents.
                  
master_sites		http://www.tm.uka.de/~bless/
checksums			md5 9ef4c529aff70fb37b2afe3f5bbd66c5

depends_run			port:ghostscript \
                    bin:perl:perl5.8

worksrcdir          ${name}

use_configure       no

build.cmd			gcc src/C/bbox.c -o bin/bbox
build.target

destroot {
	xinstall -m 755 ${worksrcpath}/bin/bbox ${destroot}${prefix}/bin
	xinstall -m 755 ${worksrcpath}/bin/ps2eps ${destroot}${prefix}/bin
	xinstall -m 644 -W ${worksrcpath}/doc/man/man1/ bbox.1 ps2eps.1 \
		${destroot}${prefix}/share/man/man1/
}
