From papowell@h114.private  Tue Jan 16 09:23:06 2001
Return-Path: <papowell@h114.private>
Received: from astart2.astart.com (astart2.astart.com [64.63.58.122])
	by hub.freebsd.org (Postfix) with ESMTP id E007F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Jan 2001 09:23:01 -0800 (PST)
Received: from h114.private (h114.private [10.0.0.114])
	by astart2.astart.com (8.9.3/8.9.3) with ESMTP id JAA26039
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Jan 2001 09:23:01 -0800 (PST)
	(envelope-from papowell@h114.private)
Received: (from papowell@localhost)
	by h114.private (8.11.1/8.11.1) id f0GHN3w12817;
	Tue, 16 Jan 2001 09:23:03 -0800 (PST)
	(envelope-from papowell)
Message-Id: <200101161723.f0GHN3w12817@h114.private>
Date: Tue, 16 Jan 2001 09:23:03 -0800 (PST)
From: papowell@astart.com
Reply-To: papowell@astart.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: eps2png
X-Send-Pr-Version: 3.2

>Number:         24389
>Category:       ports
>Synopsis:       New port: eps2png
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 16 09:30:01 PST 2001
>Closed-Date:    Sun Feb 25 18:22:14 PST 2001
>Last-Modified:  Sun Feb 25 18:22:32 PST 2001
>Originator:     Patrick Powell <papowell@astart.com>
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Astart Technologies
>Environment:

FreeBSD 4.2

>Description:

Simple PERL script to invoke GhostScript to do eps (or PostScript)
conversion to PNG format.  Rather handy if you have a lot of
legacy EPS files that you need converted to PNG and you want a simple
shell script.

>How-To-Repeat:

Write lots of documentation which has EPS figures in it and convert
it to DocBook.  Sigh...

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	eps2png
#	eps2png/Makefile
#	eps2png/work
#	eps2png/work/eps2png-1.7
#	eps2png/work/eps2png-1.7/script
#	eps2png/work/eps2png-1.7/script/eps2png
#	eps2png/work/eps2png-1.7/Makefile.PL
#	eps2png/work/eps2png-1.7/README
#	eps2png/work/eps2png-1.7/MANIFEST
#	eps2png/work/eps2png-1.7/blib
#	eps2png/work/eps2png-1.7/blib/lib
#	eps2png/work/eps2png-1.7/blib/lib/.exists
#	eps2png/work/eps2png-1.7/blib/lib/auto
#	eps2png/work/eps2png-1.7/blib/lib/auto/eps2png
#	eps2png/work/eps2png-1.7/blib/lib/auto/eps2png/.exists
#	eps2png/work/eps2png-1.7/blib/arch
#	eps2png/work/eps2png-1.7/blib/arch/auto
#	eps2png/work/eps2png-1.7/blib/arch/auto/eps2png
#	eps2png/work/eps2png-1.7/blib/arch/auto/eps2png/.exists
#	eps2png/work/eps2png-1.7/blib/man1
#	eps2png/work/eps2png-1.7/blib/man1/.exists
#	eps2png/work/eps2png-1.7/blib/man1/eps2png.1
#	eps2png/work/eps2png-1.7/blib/script
#	eps2png/work/eps2png-1.7/blib/script/.exists
#	eps2png/work/eps2png-1.7/blib/script/eps2png
#	eps2png/work/eps2png-1.7/Makefile
#	eps2png/work/eps2png-1.7/pm_to_blib
#	eps2png/work/.extract_done
#	eps2png/work/.patch_done
#	eps2png/work/.configure_done
#	eps2png/work/.build_done
#	eps2png/work/.PLIST.mktmp
#	eps2png/work/.install_done
#	eps2png/work/.PLIST.setuid
#	eps2png/work/.PLIST.startup
#	eps2png/distinfo
#	eps2png/pkg-plist
#	eps2png/pkg-descr
#	eps2png/pkg-comment
#
echo c - eps2png
mkdir -p eps2png > /dev/null 2>&1
echo x - eps2png/Makefile
sed 's/^X//' >eps2png/Makefile << 'END-of-eps2png/Makefile'
X# New ports collection makefile for:	p5-GIFgraph
X# Date created:				Nov 9, 1998
X# Whom:					laskavy@gambit.msk.su
X#
X# $FreeBSD: ports/graphics/GIFgraph/Makefile,v 1.7 2000/10/29 22:58:06 steve Exp $
X#
X
XPORTNAME=	eps2png
XPORTVERSION=	1.7
XPORTREVISION=	1
XCATEGORIES=	graphics
XMASTER_SITES=	http://www.cpan.org/authors/id/JV/
XDISTNAME=	eps2png-${PORTVERSION}
XMAINTAINER=	papowell@astart.com
X
XUSE_PERL5=	YES
X
XMAN1 = eps2png.1
X
Xdo-configure:
X	@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.PL
X
Xdo-install:
X	@cd ${WRKSRC}; ${SETENV} ${INSTALL_ENV} ${MAKE} INSTALLSCRIPT=${PREFIX}/bin install
X
X.include <bsd.port.mk>
END-of-eps2png/Makefile
echo c - eps2png/work
mkdir -p eps2png/work > /dev/null 2>&1
echo c - eps2png/work/eps2png-1.7
mkdir -p eps2png/work/eps2png-1.7 > /dev/null 2>&1
echo c - eps2png/work/eps2png-1.7/script
mkdir -p eps2png/work/eps2png-1.7/script > /dev/null 2>&1
echo x - eps2png/work/eps2png-1.7/script/eps2png
sed 's/^X//' >eps2png/work/eps2png-1.7/script/eps2png << 'END-of-eps2png/work/eps2png-1.7/script/eps2png'
X#!/opt/perl-5.6.0/bin/perl
X
Xeval 'exec /opt/perl-5.6.0/bin/perl  -S $0 ${1+"$@"}'
X    if 0; # not running under some shell
X
Xmy $RCS_Id = '$Id: eps2png.pl,v 1.8 2000-07-11 19:04:40+02 jv Exp $ ';
X
X# Author          : Johan Vromans
X# Created On      : Tue Sep 15 15:59:04 1992
X# Last Modified By: Johan Vromans
X# Last Modified On: Tue Jul 11 19:04:01 2000
X# Update Count    : 104
X# Status          : Unknown, Use with caution!
X
X################ Common stuff ################
X
Xuse strict;
Xuse Getopt::Long 2.1;
X
Xmy $my_package = "Sciurix";
Xmy ($my_name, $my_version) = $RCS_Id =~ /: (.+).pl,v ([\d.]+)/;
X$my_version .= '*' if length('$Locker:  $ ') > 12;
X
X################ Program parameters ################
X
X### CONFIG
X# Some GhostScript programs can produce GIF directly.
X# If not, we need the PBM package for the conversion.
Xmy $use_pbm = 1;		# GhostScript can not produce GIF
X### END CONFIG
X
Xmy $res = 82;			# default resolution
Xmy $scale = 1;			# default scaling
Xmy $mono = 0;			# produce BW images if non-zero
Xmy $format;			# output format
Xmy $gs_format;			# GS output type
Xmy $output;			# output, defaults to STDOUT
X
Xmy ($verbose,$trace,$test,$debug) = (0,0,0,0);
Xhandle_options ();
Xunless ( defined $format ) {
X    if ( $0 =~ /2(gif|jpg|png)$/ ) {
X	set_out_type ($1);
X    }
X    else {
X	set_out_type ('png') unless defined $format;
X    }
X}
Xprint STDERR ("Producing $format ($gs_format) image.\n") if $verbose;
X
X$trace |= $test | $debug;
X$verbose |= $trace;
X
X################ Presets ################
X
X################ The Process ################
X
Xmy $eps_file;
Xmy $err = 0;
X
Xforeach $eps_file ( @ARGV ) {
X
X    unless ( open (EPS, $eps_file) ) {
X	print STDERR ("Cannot open $eps_file [$!], skipped\n");
X	$err++;
X	next;
X    }
X
X    my $line = <EPS>;
X    unless ( $line =~ /^%!PS-Adobe.*EPSF-/ ) {
X	print STDERR ("Not EPS file: $eps_file, skipped\n");
X	$err++;
X	next;
X    }
X
X    my $width;			# actual width
X    my $height;			# actual height
X    my $ps;			# PostScript input data
X
X    while ( $line = <EPS> ) {
X
X	# Search for BoundingBox.
X	if ( $line =~ /^%%BoundingBox:\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/i ) {
X
X	    # Create PostScript code to translate coordinates.
X	    $ps = ($scale == 1 ? "" : "$scale $scale scale\n").
X	      (0-$1) . " " . (0-$2) . " translate\n".
X		"($eps_file) run\n".
X		  "showpage\n".
X		    "quit\n";
X
X	    # Calculate actual width.
X	    $width  = $3 - $1;
X	    $height = $4 - $2;
X	    print STDERR ("$eps_file: x0=$1, y0=$2, w=$width, h=$height")
X		if $verbose;
X	    # Normal PostScript resolution is 72.
X	    $width  *= $res/72 * $scale;
X	    $height *= $res/72 * $scale;
X	    # Round up.
X	    $width  = int ($width + 0.5) + 1;
X	    $height = int ($height + 0.5) + 1;
X	    print STDERR (", width=$width, height=$height\n") if $verbose;
X	    last;
X	}
X	elsif ( $line =~ /^%%EndComments/i ) {
X	    print STDERR ("No bounding box in $eps_file\n");
X	    $err++;
X	    last;
X	}
X    }
X    close (EPS);
X
X    my $out_file;		# output file
X    my $pbm_file;		# temporary file for PBM conversion
X
X    # Note the temporary PBM file is created where the output file is
X    # located, since that will guarantee accessibility (and a valid
X    # filename).
X    if ( defined $output ) {
X	$out_file = $output;
X	$pbm_file = $output.".ppm";
X    }
X    elsif ( $eps_file =~ /^(.+).epsf?$/i ) {
X	$out_file = "$1.$format";
X	$pbm_file = $1.".ppm";
X    }
X    else {
X	$out_file = $eps_file . ".$format";
X	$pbm_file = $eps_file . ".ppm";
X    }
X    print STDERR ("Creating $out_file\n") if $verbose;
X
X    my $gs0 = "gs -q -dNOPAUSE -r$res -g${width}x$height";
X    my $gs1 = "-";
X    if ( $format eq 'png' ) {
X	mysystem ("$gs0 -sDEVICE=". ($mono ? "pngmono" : $gs_format).
X		  " -sOutputFile=$out_file $gs1", $ps);
X    }
X    elsif ( $format eq 'jpg' ) {
X	mysystem ("$gs0 -sDEVICE=". ($mono ? "jpeggray" : $gs_format).
X		  " -sOutputFile=$out_file $gs1", $ps);
X    }
X    elsif ( $format eq 'gif' ) {
X	if ( $use_pbm ) {
X	    # Convert to PPM and use some of the PBM converters.
X	    mysystem ("$gs0 -sDEVICE=". ($mono ? "pbm" : "ppm").
X		      " -sOutputFile=$pbm_file $gs1", $ps);
X	    # mysystem ("pnmcrop $pbm_file | ppmtogif > $out_file");
X	    mysystem ("ppmtogif $pbm_file > $out_file");
X	    unlink ($pbm_file);
X	}
X	else {
X	    # GhostScript has GIF drivers built-in.
X	    mysystem ("$gs0 -sDEVICE=". ($mono ? "gifmono" : "gif8").
X		      " -sOutputFile=$out_file $gs1", $ps);
X	}
X    }
X    else {
X	print STDERR ("ASSERT ERROR: Unhandled output type: $format\n");
X	exit (1);
X    }
X
X    unless ( -s $out_file ) {
X	print STDERR ("Problem creating $out_file for $eps_file\n");
X	$err++;
X    }
X}
X
Xexit ( $err ? 1 : 0 );
X
X################ Subroutines ################
X
Xsub mysystem {
X    my ($cmd, $data) = @_;
X    print STDERR ("+ $cmd\n") if $trace;
X    if ( $data ) {
X	if ( $trace ) {
X	    my $dp = ">> " . $data;
X	    $dp =~ s/\n(.)/\n>> $1/g;
X	    print STDERR ("$dp");
X	}
X	open (CMD, "|$cmd") or die ("cmd: $!\n");
X	print CMD $data;
X	close CMD or die ("cmd close: $!\n");
X    }
X    else {
X	system ($cmd);
X    }
X}
X
Xsub set_out_type {
X    my ($opt) = lc (shift (@_));
X    if ( $opt =~ /^png(mono|gray|16|256|16m)?$/ ) {
X	$format = 'png';
X	$gs_format = $format.(defined $1 ? $1 : '16m');
X    }
X    elsif ( $opt =~ /^gif(mono)?$/ ) {
X	$format = 'gif';
X	$gs_format = $format.(defined $1 ? $1 : '');
X    }
X    elsif ( $opt =~ /^(jpg|jpeg)(gray)?$/ ) {
X	$format = 'jpg';
X	$gs_format = 'jpeg'.(defined $2 ? $2 : '');
X    }
X    else {
X	print STDERR ("ASSERT ERROR: Invalid value to set_out_type: $opt\n");
X	exit (1);
X    }
X}
X
Xsub handle_options {
X    my  ($help) = 0;		# handled locally
X    my ($ident) = 0;		# handled locally
X
X    # Process options.
X    if ( @ARGV > 0 && $ARGV[0] =~ /^[-+]/ ) {
X	usage () 
X	  unless GetOptions ('ident'     => \$ident,
X			     'verbose'   => \$verbose,
X			     'scale=f'   => \$scale,
X			     'output=s'  => \$output,
X			     'png'       => \&set_out_type,
X			     'pngmono'   => \&set_out_type,
X			     'pnggray'   => \&set_out_type,
X			     'png16'     => \&set_out_type,
X			     'png256'    => \&set_out_type,
X			     'png16m'    => \&set_out_type,
X			     'jpg'       => \&set_out_type,
X			     'jpggray'   => \&set_out_type,
X			     'jpeg'      => \&set_out_type,
X			     'jpeggray'  => \&set_out_type,
X			     'gif'       => \&set_out_type,
X			     'gifmono'   => \&set_out_type,
X			     'mono!'     => \$mono,
X			     'res=i'     => \$res,
X			     'pbm!'      => \$use_pbm,
X			     'trace'     => \$trace,
X			     'help'      => \$help,
X			     'debug'     => \$debug)
X		&& !$help;
X    }
X    print STDERR ("This is $my_package [$my_name $my_version]\n")
X	if $ident;
X    usage () unless @ARGV;
X    usage () if @ARGV > 1 && defined $output;
X}
X
Xsub usage {
X    print STDERR <<EndOfUsage;
XThis is $my_package [$my_name $my_version]
XUsage: $0 [options] file [...]
X
X    -png -pngmono -pnggray -png16 -png256 -png16m
X                        produce PNG image
X    -jpg -jpggray -jpeg -jpeggray
X                        produce JPG image
X    -gif -gifmono       produce GIF image
X    -[no]mono		monochrome/colour rendition
X    -res XXX		resolution (default = $res)
X    -scale XXX		scaling factor
X    -[no]pbm		GIF only: [do not] convert via pbm format
X    -output XXX		output to this file (only one input file)
X    -help		this message
X    -ident		show identification
X    -verbose		verbose information
XEndOfUsage
X    exit 1;
X}
X__END__
X
X=pod
X
X=head1 NAME
X
Xepf2png - convert EPS files to PNG, JPG or GIF images
X
X=head1 SYNOPSIS
X
X    eps2png [ options ] files ...
X    eps2gif [ options ] files ...
X    eps2jpg [ options ] files ...
X
X=head1 DESCRIPTION
X
XConverts files from EPS format (Encapsulated PostScript) to some
Xpopular image formats.
X
XIf installed as C<eps2png> (the default), it produces PNG images by
Xdefault. Likewise, C<eps2gif> defaults to GIF images and C<eps2jpg>
Xdefaults to JPG. Note that the normal installation procedure will
XI<only> install C<eps2png>.
X
XIt uses GhostScript to produce the images. Since modern GhostScript
Xprograms do not support GIF anymore, GIF images are produced via the
XPortable PixMap converters (PBM-package). In this case, a temporary
Xfile is created, named after the output file, with the extension
Xreplaced by ".ppm". It is deleted upon completion.
X
X=head1 ARGUMENTS
X
X    -png -pngmono -pnggray -png16 -png256 -png16m
X                        produce PNG image
X    -jpg -jpggray -jpeg -jpeggray
X                        produce JPG image
X    -gif -gifmono       produce GIF image
X    -[no]mono		monochrome/colour rendition
X    -res XXX		resolution (default = 82)
X    -scale XXX		scaling factor
X    -[no]pbm		GIF only: [do not] convert via pbm format
X    -output XXX		output to this file (only one input file)
X    -help		this message
X    -ident		show identification
X    -verbose		verbose information
X
X
X=head1 AUTHOR
X
XJohan Vromans, E<lt>jvromans@squirrel.nlE<gt>.
X
X=head1 BUGS
X
XGhostScript and, if required, the PBM package, need to be installed and
Xaccessible through the user's C<PATH>.
X
XGhostScript is assumed to be capable of handling all the image types
Xlisted above.
X
X=head1 COPYRIGHT AND DISCLAIMER
X
XThis program is Copyright 1994,2000 by Johan Vromans.
XThis program is free software; you can redistribute it and/or
Xmodify it under the terms of the Perl Artistic License or the
XGNU General Public License as published by the Free Software
XFoundation; either version 2 of the License, or (at your option) any
Xlater version.
X
XThis program is distributed in the hope that it will be useful,
Xbut WITHOUT ANY WARRANTY; without even the implied warranty of
XMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XGNU General Public License for more details.
X
XIf you do not have a copy of the GNU General Public License write to
Xthe Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
XMA 02139, USA.
X
X=cut
END-of-eps2png/work/eps2png-1.7/script/eps2png
echo x - eps2png/work/eps2png-1.7/Makefile.PL
sed 's/^X//' >eps2png/work/eps2png-1.7/Makefile.PL << 'END-of-eps2png/work/eps2png-1.7/Makefile.PL'
X# Makefile.PL -- Makefile for eps2png
X# Author          : Johan Vromans
X# Created On      : Sat Jun  6 16:08:33 1998
X# Last Modified By: Johan Vromans
X# Last Modified On: Thu Jul 13 18:48:56 2000
X# Update Count    : 19
X# Status          : Released
X
Xuse ExtUtils::MakeMaker;
X
Xmy @scripts = qw (eps2png);
Xmy $usrbin = "/usr/bin";
Xmy $installscript = $Config{installscript};
X
Xprint STDERR <<EOD unless $installscript eq $usrbin;
X
XWARNING: This Makefile will install user accessible scripts.
XThe location for these scripts is $installscript.
XYou may consider to pass INSTALLSCRIPT=$usrbin (or some other
Xconvenient location) to "make install".
XEOD
X
Xprint STDERR <<EOD;
X
XIMPORTANT: This program requires ghostscript and may require the
XPortable Bitmap package (PBM) for additional conversions.
X
XEOD
X
XWriteMakefile
X  (
X   NAME         => "$scripts[0]",
X   VERSION      => "1.7",
X   ($] >= 5.005) ?
X   ( AUTHOR	=> 'Johan Vromans (jvromans@squirrel.nl)',
X     ABSTRACT	=> 'Modules to get info for/from PostScript fonts' ) : (),
X   PREREQ_PM	=> { 'Getopt::Long' => 2.1 },
X   EXE_FILES    => [ map { "script/$_" } @scripts ],
X );
END-of-eps2png/work/eps2png-1.7/Makefile.PL
echo x - eps2png/work/eps2png-1.7/README
sed 's/^X//' >eps2png/work/eps2png-1.7/README << 'END-of-eps2png/work/eps2png-1.7/README'
Xepf2png converts files from EPS format (Encapsulated PostScript) to
Xsome popular image formats.
X
XIt uses GhostScript to produce the images. Since modern GhostScript
Xprograms do not support GIF anymore, GIF images are produced via the
XPortable BitMap converters (PBM-package).
X
XThis program is distributed under the Perl Artistic License and the GPL.
X
X     Johan Vromans <jvromans@squirrel.nl>
X
XINSTALLATION
X------------
X
X * Prerequisites: - Unix
X		  - Perl5.004
X		  - a GhostScript installation that can handle the
X		    desired output formats (use `gs -h' to get a list of
X		    supported formats)
X		  - if you want GIF format and your GhostScript cannot
X		    produce this, the Portable BitMap package (pbmplus
X		    or netpbm)
X
XThe program is distributed in the form of a gzipped tar (.tar.gz)
Xfile. Unpack this file in a scratch directory:
X
X  % gzip -d < eps2png-x.y.tar.gz | tar -xvf -
X
XThis will create a sub-directory eps2png-x.y. Switch to this
Xdirectory: 
X
X  % cd eps2png-x.y
X
XExecute the following commands. Note that this is the standard
Xprocedure for Perl extensions and programs:
X
X  % perl Makefile.PL
X  % make all
X  % make install
X
XThe last command requires superuser (root) privilege.
X
XADDITIONAL LINKS
X----------------
X
XThe program is installed under the name eps2png. When invoked like
Xthis, it produces PNG images by default.
XYou may install it under alternative names (or create links) for other
Xdefault image formats:
X
X  eps2gif    -- will produce GIF images by default
X  eps2jpg    -- will produce JPEG images by default
X
XNote that, in any case, the desired output format can be selected
Xusing command line options.
END-of-eps2png/work/eps2png-1.7/README
echo x - eps2png/work/eps2png-1.7/MANIFEST
sed 's/^X//' >eps2png/work/eps2png-1.7/MANIFEST << 'END-of-eps2png/work/eps2png-1.7/MANIFEST'
XREADME
XMANIFEST
XMakefile.PL
Xscript/eps2png
X
X
END-of-eps2png/work/eps2png-1.7/MANIFEST
echo c - eps2png/work/eps2png-1.7/blib
mkdir -p eps2png/work/eps2png-1.7/blib > /dev/null 2>&1
echo c - eps2png/work/eps2png-1.7/blib/lib
mkdir -p eps2png/work/eps2png-1.7/blib/lib > /dev/null 2>&1
echo x - eps2png/work/eps2png-1.7/blib/lib/.exists
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/lib/.exists << 'END-of-eps2png/work/eps2png-1.7/blib/lib/.exists'
END-of-eps2png/work/eps2png-1.7/blib/lib/.exists
echo c - eps2png/work/eps2png-1.7/blib/lib/auto
mkdir -p eps2png/work/eps2png-1.7/blib/lib/auto > /dev/null 2>&1
echo c - eps2png/work/eps2png-1.7/blib/lib/auto/eps2png
mkdir -p eps2png/work/eps2png-1.7/blib/lib/auto/eps2png > /dev/null 2>&1
echo x - eps2png/work/eps2png-1.7/blib/lib/auto/eps2png/.exists
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/lib/auto/eps2png/.exists << 'END-of-eps2png/work/eps2png-1.7/blib/lib/auto/eps2png/.exists'
END-of-eps2png/work/eps2png-1.7/blib/lib/auto/eps2png/.exists
echo c - eps2png/work/eps2png-1.7/blib/arch
mkdir -p eps2png/work/eps2png-1.7/blib/arch > /dev/null 2>&1
echo c - eps2png/work/eps2png-1.7/blib/arch/auto
mkdir -p eps2png/work/eps2png-1.7/blib/arch/auto > /dev/null 2>&1
echo c - eps2png/work/eps2png-1.7/blib/arch/auto/eps2png
mkdir -p eps2png/work/eps2png-1.7/blib/arch/auto/eps2png > /dev/null 2>&1
echo x - eps2png/work/eps2png-1.7/blib/arch/auto/eps2png/.exists
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/arch/auto/eps2png/.exists << 'END-of-eps2png/work/eps2png-1.7/blib/arch/auto/eps2png/.exists'
END-of-eps2png/work/eps2png-1.7/blib/arch/auto/eps2png/.exists
echo c - eps2png/work/eps2png-1.7/blib/man1
mkdir -p eps2png/work/eps2png-1.7/blib/man1 > /dev/null 2>&1
echo x - eps2png/work/eps2png-1.7/blib/man1/.exists
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/man1/.exists << 'END-of-eps2png/work/eps2png-1.7/blib/man1/.exists'
END-of-eps2png/work/eps2png-1.7/blib/man1/.exists
echo x - eps2png/work/eps2png-1.7/blib/man1/eps2png.1
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/man1/eps2png.1 << 'END-of-eps2png/work/eps2png-1.7/blib/man1/eps2png.1'
X.rn '' }`
X''' $RCSfile$$Revision$$Date$
X'''
X''' $Log$
X'''
X.de Sh
X.br
X.if t .Sp
X.ne 5
X.PP
X\fB\\$1\fR
X.PP
X..
X.de Sp
X.if t .sp .5v
X.if n .sp
X..
X.de Ip
X.br
X.ie \\n(.$>=3 .ne \\$3
X.el .ne 3
X.IP "\\$1" \\$2
X..
X.de Vb
X.ft CW
X.nf
X.ne \\$1
X..
X.de Ve
X.ft R
X
X.fi
X..
X'''
X'''
X'''     Set up \*(-- to give an unbreakable dash;
X'''     string Tr holds user defined translation string.
X'''     Bell System Logo is used as a dummy character.
X'''
X.tr \(*W-|\(bv\*(Tr
X.ie n \{\
X.ds -- \(*W-
X.ds PI pi
X.if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
X.if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
X.ds L" ""
X.ds R" ""
X'''   \*(M", \*(S", \*(N" and \*(T" are the equivalent of
X'''   \*(L" and \*(R", except that they are used on ".xx" lines,
X'''   such as .IP and .SH, which do another additional levels of
X'''   double-quote interpretation
X.ds M" """
X.ds S" """
X.ds N" """""
X.ds T" """""
X.ds L' '
X.ds R' '
X.ds M' '
X.ds S' '
X.ds N' '
X.ds T' '
X'br\}
X.el\{\
X.ds -- \(em\|
X.tr \*(Tr
X.ds L" ``
X.ds R" ''
X.ds M" ``
X.ds S" ''
X.ds N" ``
X.ds T" ''
X.ds L' `
X.ds R' '
X.ds M' `
X.ds S' '
X.ds N' `
X.ds T' '
X.ds PI \(*p
X'br\}
X.\"	If the F register is turned on, we'll generate
X.\"	index entries out stderr for the following things:
X.\"		TH	Title 
X.\"		SH	Header
X.\"		Sh	Subsection 
X.\"		Ip	Item
X.\"		X<>	Xref  (embedded
X.\"	Of course, you have to process the output yourself
X.\"	in some meaninful fashion.
X.if \nF \{
X.de IX
X.tm Index:\\$1\t\\n%\t"\\$2"
X..
X.nr % 0
X.rr F
X.\}
X.TH EPS2PNG 1 "perl 5.005, patch 03" "13/Jul/2000" "User Contributed Perl Documentation"
X.UC
X.if n .hy 0
X.if n .na
X.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
X.de CQ          \" put $1 in typewriter font
X.ft CW
X'if n "\c
X'if t \\&\\$1\c
X'if n \\&\\$1\c
X'if n \&"
X\\&\\$2 \\$3 \\$4 \\$5 \\$6 \\$7
X'.ft R
X..
X.\" @(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2
X.	\" AM - accent mark definitions
X.bd B 3
X.	\" fudge factors for nroff and troff
X.if n \{\
X.	ds #H 0
X.	ds #V .8m
X.	ds #F .3m
X.	ds #[ \f1
X.	ds #] \fP
X.\}
X.if t \{\
X.	ds #H ((1u-(\\\\n(.fu%2u))*.13m)
X.	ds #V .6m
X.	ds #F 0
X.	ds #[ \&
X.	ds #] \&
X.\}
X.	\" simple accents for nroff and troff
X.if n \{\
X.	ds ' \&
X.	ds ` \&
X.	ds ^ \&
X.	ds , \&
X.	ds ~ ~
X.	ds ? ?
X.	ds ! !
X.	ds /
X.	ds q
X.\}
X.if t \{\
X.	ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
X.	ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
X.	ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
X.	ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
X.	ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
X.	ds ? \s-2c\h'-\w'c'u*7/10'\u\h'\*(#H'\zi\d\s+2\h'\w'c'u*8/10'
X.	ds ! \s-2\(or\s+2\h'-\w'\(or'u'\v'-.8m'.\v'.8m'
X.	ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
X.	ds q o\h'-\w'o'u*8/10'\s-4\v'.4m'\z\(*i\v'-.4m'\s+4\h'\w'o'u*8/10'
X.\}
X.	\" troff and (daisy-wheel) nroff accents
X.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
X.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
X.ds v \\k:\h'-(\\n(.wu*9/10-\*(#H)'\v'-\*(#V'\*(#[\s-4v\s0\v'\*(#V'\h'|\\n:u'\*(#]
X.ds _ \\k:\h'-(\\n(.wu*9/10-\*(#H+(\*(#F*2/3))'\v'-.4m'\z\(hy\v'.4m'\h'|\\n:u'
X.ds . \\k:\h'-(\\n(.wu*8/10)'\v'\*(#V*4/10'\z.\v'-\*(#V*4/10'\h'|\\n:u'
X.ds 3 \*(#[\v'.2m'\s-2\&3\s0\v'-.2m'\*(#]
X.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
X.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
X.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
X.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
X.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
X.ds ae a\h'-(\w'a'u*4/10)'e
X.ds Ae A\h'-(\w'A'u*4/10)'E
X.ds oe o\h'-(\w'o'u*4/10)'e
X.ds Oe O\h'-(\w'O'u*4/10)'E
X.	\" corrections for vroff
X.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
X.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
X.	\" for low resolution devices (crt and lpr)
X.if \n(.H>23 .if \n(.V>19 \
X\{\
X.	ds : e
X.	ds 8 ss
X.	ds v \h'-1'\o'\(aa\(ga'
X.	ds _ \h'-1'^
X.	ds . \h'-1'.
X.	ds 3 3
X.	ds o a
X.	ds d- d\h'-1'\(ga
X.	ds D- D\h'-1'\(hy
X.	ds th \o'bp'
X.	ds Th \o'LP'
X.	ds ae ae
X.	ds Ae AE
X.	ds oe oe
X.	ds Oe OE
X.\}
X.rm #[ #] #H #V #F C
X.SH "NAME"
Xepf2png \- convert EPS files to PNG, JPG or GIF images
X.SH "SYNOPSIS"
X.PP
X.Vb 3
X\&    eps2png [ options ] files ...
X\&    eps2gif [ options ] files ...
X\&    eps2jpg [ options ] files ...
X.Ve
X.SH "DESCRIPTION"
XConverts files from EPS format (Encapsulated PostScript) to some
Xpopular image formats.
X.PP
XIf installed as \f(CWeps2png\fR (the default), it produces PNG images by
Xdefault. Likewise, \f(CWeps2gif\fR defaults to GIF images and \f(CWeps2jpg\fR
Xdefaults to JPG. Note that the normal installation procedure will
X\fIonly\fR install \f(CWeps2png\fR.
X.PP
XIt uses GhostScript to produce the images. Since modern GhostScript
Xprograms do not support GIF anymore, GIF images are produced via the
XPortable PixMap converters (PBM\-package). In this case, a temporary
Xfile is created, named after the output file, with the extension
Xreplaced by \*(L".ppm\*(R". It is deleted upon completion.
X.SH "ARGUMENTS"
X.PP
X.Vb 13
X\&    -png -pngmono -pnggray -png16 -png256 -png16m
X\&                        produce PNG image
X\&    -jpg -jpggray -jpeg -jpeggray
X\&                        produce JPG image
X\&    -gif -gifmono       produce GIF image
X\&    -[no]mono           monochrome/colour rendition
X\&    -res XXX            resolution (default = 82)
X\&    -scale XXX          scaling factor
X\&    -[no]pbm            GIF only: [do not] convert via pbm format
X\&    -output XXX         output to this file (only one input file)
X\&    -help               this message
X\&    -ident              show identification
X\&    -verbose            verbose information
X.Ve
X.SH "AUTHOR"
XJohan Vromans, <jvromans@squirrel.nl>.
X.SH "BUGS"
XGhostScript and, if required, the PBM package, need to be installed and
Xaccessible through the user's \f(CWPATH\fR.
X.PP
XGhostScript is assumed to be capable of handling all the image types
Xlisted above.
X.SH "COPYRIGHT AND DISCLAIMER"
XThis program is Copyright 1994,2000 by Johan Vromans.
XThis program is free software; you can redistribute it and/or
Xmodify it under the terms of the Perl Artistic License or the
XGNU General Public License as published by the Free Software
XFoundation; either version 2 of the License, or (at your option) any
Xlater version.
X.PP
XThis program is distributed in the hope that it will be useful,
Xbut WITHOUT ANY WARRANTY; without even the implied warranty of
XMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XGNU General Public License for more details.
X.PP
XIf you do not have a copy of the GNU General Public License write to
Xthe Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
XMA 02139, USA.
X
X.rn }` ''
X.IX Title "EPS2PNG 1"
X.IX Name "epf2png - convert EPS files to PNG, JPG or GIF images"
X
X.IX Header "NAME"
X
X.IX Header "SYNOPSIS"
X
X.IX Header "DESCRIPTION"
X
X.IX Header "ARGUMENTS"
X
X.IX Header "AUTHOR"
X
X.IX Header "BUGS"
X
X.IX Header "COPYRIGHT AND DISCLAIMER"
X
END-of-eps2png/work/eps2png-1.7/blib/man1/eps2png.1
echo c - eps2png/work/eps2png-1.7/blib/script
mkdir -p eps2png/work/eps2png-1.7/blib/script > /dev/null 2>&1
echo x - eps2png/work/eps2png-1.7/blib/script/.exists
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/script/.exists << 'END-of-eps2png/work/eps2png-1.7/blib/script/.exists'
END-of-eps2png/work/eps2png-1.7/blib/script/.exists
echo x - eps2png/work/eps2png-1.7/blib/script/eps2png
sed 's/^X//' >eps2png/work/eps2png-1.7/blib/script/eps2png << 'END-of-eps2png/work/eps2png-1.7/blib/script/eps2png'
X#!/usr/bin/perl
X
Xeval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
X    if 0; # not running under some shell
X
Xeval 'exec /opt/perl-5.6.0/bin/perl  -S $0 ${1+"$@"}'
X    if 0; # not running under some shell
X
Xmy $RCS_Id = '$Id: eps2png.pl,v 1.8 2000-07-11 19:04:40+02 jv Exp $ ';
X
X# Author          : Johan Vromans
X# Created On      : Tue Sep 15 15:59:04 1992
X# Last Modified By: Johan Vromans
X# Last Modified On: Tue Jul 11 19:04:01 2000
X# Update Count    : 104
X# Status          : Unknown, Use with caution!
X
X################ Common stuff ################
X
Xuse strict;
Xuse Getopt::Long 2.1;
X
Xmy $my_package = "Sciurix";
Xmy ($my_name, $my_version) = $RCS_Id =~ /: (.+).pl,v ([\d.]+)/;
X$my_version .= '*' if length('$Locker:  $ ') > 12;
X
X################ Program parameters ################
X
X### CONFIG
X# Some GhostScript programs can produce GIF directly.
X# If not, we need the PBM package for the conversion.
Xmy $use_pbm = 1;		# GhostScript can not produce GIF
X### END CONFIG
X
Xmy $res = 82;			# default resolution
Xmy $scale = 1;			# default scaling
Xmy $mono = 0;			# produce BW images if non-zero
Xmy $format;			# output format
Xmy $gs_format;			# GS output type
Xmy $output;			# output, defaults to STDOUT
X
Xmy ($verbose,$trace,$test,$debug) = (0,0,0,0);
Xhandle_options ();
Xunless ( defined $format ) {
X    if ( $0 =~ /2(gif|jpg|png)$/ ) {
X	set_out_type ($1);
X    }
X    else {
X	set_out_type ('png') unless defined $format;
X    }
X}
Xprint STDERR ("Producing $format ($gs_format) image.\n") if $verbose;
X
X$trace |= $test | $debug;
X$verbose |= $trace;
X
X################ Presets ################
X
X################ The Process ################
X
Xmy $eps_file;
Xmy $err = 0;
X
Xforeach $eps_file ( @ARGV ) {
X
X    unless ( open (EPS, $eps_file) ) {
X	print STDERR ("Cannot open $eps_file [$!], skipped\n");
X	$err++;
X	next;
X    }
X
X    my $line = <EPS>;
X    unless ( $line =~ /^%!PS-Adobe.*EPSF-/ ) {
X	print STDERR ("Not EPS file: $eps_file, skipped\n");
X	$err++;
X	next;
X    }
X
X    my $width;			# actual width
X    my $height;			# actual height
X    my $ps;			# PostScript input data
X
X    while ( $line = <EPS> ) {
X
X	# Search for BoundingBox.
X	if ( $line =~ /^%%BoundingBox:\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/i ) {
X
X	    # Create PostScript code to translate coordinates.
X	    $ps = ($scale == 1 ? "" : "$scale $scale scale\n").
X	      (0-$1) . " " . (0-$2) . " translate\n".
X		"($eps_file) run\n".
X		  "showpage\n".
X		    "quit\n";
X
X	    # Calculate actual width.
X	    $width  = $3 - $1;
X	    $height = $4 - $2;
X	    print STDERR ("$eps_file: x0=$1, y0=$2, w=$width, h=$height")
X		if $verbose;
X	    # Normal PostScript resolution is 72.
X	    $width  *= $res/72 * $scale;
X	    $height *= $res/72 * $scale;
X	    # Round up.
X	    $width  = int ($width + 0.5) + 1;
X	    $height = int ($height + 0.5) + 1;
X	    print STDERR (", width=$width, height=$height\n") if $verbose;
X	    last;
X	}
X	elsif ( $line =~ /^%%EndComments/i ) {
X	    print STDERR ("No bounding box in $eps_file\n");
X	    $err++;
X	    last;
X	}
X    }
X    close (EPS);
X
X    my $out_file;		# output file
X    my $pbm_file;		# temporary file for PBM conversion
X
X    # Note the temporary PBM file is created where the output file is
X    # located, since that will guarantee accessibility (and a valid
X    # filename).
X    if ( defined $output ) {
X	$out_file = $output;
X	$pbm_file = $output.".ppm";
X    }
X    elsif ( $eps_file =~ /^(.+).epsf?$/i ) {
X	$out_file = "$1.$format";
X	$pbm_file = $1.".ppm";
X    }
X    else {
X	$out_file = $eps_file . ".$format";
X	$pbm_file = $eps_file . ".ppm";
X    }
X    print STDERR ("Creating $out_file\n") if $verbose;
X
X    my $gs0 = "gs -q -dNOPAUSE -r$res -g${width}x$height";
X    my $gs1 = "-";
X    if ( $format eq 'png' ) {
X	mysystem ("$gs0 -sDEVICE=". ($mono ? "pngmono" : $gs_format).
X		  " -sOutputFile=$out_file $gs1", $ps);
X    }
X    elsif ( $format eq 'jpg' ) {
X	mysystem ("$gs0 -sDEVICE=". ($mono ? "jpeggray" : $gs_format).
X		  " -sOutputFile=$out_file $gs1", $ps);
X    }
X    elsif ( $format eq 'gif' ) {
X	if ( $use_pbm ) {
X	    # Convert to PPM and use some of the PBM converters.
X	    mysystem ("$gs0 -sDEVICE=". ($mono ? "pbm" : "ppm").
X		      " -sOutputFile=$pbm_file $gs1", $ps);
X	    # mysystem ("pnmcrop $pbm_file | ppmtogif > $out_file");
X	    mysystem ("ppmtogif $pbm_file > $out_file");
X	    unlink ($pbm_file);
X	}
X	else {
X	    # GhostScript has GIF drivers built-in.
X	    mysystem ("$gs0 -sDEVICE=". ($mono ? "gifmono" : "gif8").
X		      " -sOutputFile=$out_file $gs1", $ps);
X	}
X    }
X    else {
X	print STDERR ("ASSERT ERROR: Unhandled output type: $format\n");
X	exit (1);
X    }
X
X    unless ( -s $out_file ) {
X	print STDERR ("Problem creating $out_file for $eps_file\n");
X	$err++;
X    }
X}
X
Xexit ( $err ? 1 : 0 );
X
X################ Subroutines ################
X
Xsub mysystem {
X    my ($cmd, $data) = @_;
X    print STDERR ("+ $cmd\n") if $trace;
X    if ( $data ) {
X	if ( $trace ) {
X	    my $dp = ">> " . $data;
X	    $dp =~ s/\n(.)/\n>> $1/g;
X	    print STDERR ("$dp");
X	}
X	open (CMD, "|$cmd") or die ("cmd: $!\n");
X	print CMD $data;
X	close CMD or die ("cmd close: $!\n");
X    }
X    else {
X	system ($cmd);
X    }
X}
X
Xsub set_out_type {
X    my ($opt) = lc (shift (@_));
X    if ( $opt =~ /^png(mono|gray|16|256|16m)?$/ ) {
X	$format = 'png';
X	$gs_format = $format.(defined $1 ? $1 : '16m');
X    }
X    elsif ( $opt =~ /^gif(mono)?$/ ) {
X	$format = 'gif';
X	$gs_format = $format.(defined $1 ? $1 : '');
X    }
X    elsif ( $opt =~ /^(jpg|jpeg)(gray)?$/ ) {
X	$format = 'jpg';
X	$gs_format = 'jpeg'.(defined $2 ? $2 : '');
X    }
X    else {
X	print STDERR ("ASSERT ERROR: Invalid value to set_out_type: $opt\n");
X	exit (1);
X    }
X}
X
Xsub handle_options {
X    my  ($help) = 0;		# handled locally
X    my ($ident) = 0;		# handled locally
X
X    # Process options.
X    if ( @ARGV > 0 && $ARGV[0] =~ /^[-+]/ ) {
X	usage () 
X	  unless GetOptions ('ident'     => \$ident,
X			     'verbose'   => \$verbose,
X			     'scale=f'   => \$scale,
X			     'output=s'  => \$output,
X			     'png'       => \&set_out_type,
X			     'pngmono'   => \&set_out_type,
X			     'pnggray'   => \&set_out_type,
X			     'png16'     => \&set_out_type,
X			     'png256'    => \&set_out_type,
X			     'png16m'    => \&set_out_type,
X			     'jpg'       => \&set_out_type,
X			     'jpggray'   => \&set_out_type,
X			     'jpeg'      => \&set_out_type,
X			     'jpeggray'  => \&set_out_type,
X			     'gif'       => \&set_out_type,
X			     'gifmono'   => \&set_out_type,
X			     'mono!'     => \$mono,
X			     'res=i'     => \$res,
X			     'pbm!'      => \$use_pbm,
X			     'trace'     => \$trace,
X			     'help'      => \$help,
X			     'debug'     => \$debug)
X		&& !$help;
X    }
X    print STDERR ("This is $my_package [$my_name $my_version]\n")
X	if $ident;
X    usage () unless @ARGV;
X    usage () if @ARGV > 1 && defined $output;
X}
X
Xsub usage {
X    print STDERR <<EndOfUsage;
XThis is $my_package [$my_name $my_version]
XUsage: $0 [options] file [...]
X
X    -png -pngmono -pnggray -png16 -png256 -png16m
X                        produce PNG image
X    -jpg -jpggray -jpeg -jpeggray
X                        produce JPG image
X    -gif -gifmono       produce GIF image
X    -[no]mono		monochrome/colour rendition
X    -res XXX		resolution (default = $res)
X    -scale XXX		scaling factor
X    -[no]pbm		GIF only: [do not] convert via pbm format
X    -output XXX		output to this file (only one input file)
X    -help		this message
X    -ident		show identification
X    -verbose		verbose information
XEndOfUsage
X    exit 1;
X}
X__END__
X
X=pod
X
X=head1 NAME
X
Xepf2png - convert EPS files to PNG, JPG or GIF images
X
X=head1 SYNOPSIS
X
X    eps2png [ options ] files ...
X    eps2gif [ options ] files ...
X    eps2jpg [ options ] files ...
X
X=head1 DESCRIPTION
X
XConverts files from EPS format (Encapsulated PostScript) to some
Xpopular image formats.
X
XIf installed as C<eps2png> (the default), it produces PNG images by
Xdefault. Likewise, C<eps2gif> defaults to GIF images and C<eps2jpg>
Xdefaults to JPG. Note that the normal installation procedure will
XI<only> install C<eps2png>.
X
XIt uses GhostScript to produce the images. Since modern GhostScript
Xprograms do not support GIF anymore, GIF images are produced via the
XPortable PixMap converters (PBM-package). In this case, a temporary
Xfile is created, named after the output file, with the extension
Xreplaced by ".ppm". It is deleted upon completion.
X
X=head1 ARGUMENTS
X
X    -png -pngmono -pnggray -png16 -png256 -png16m
X                        produce PNG image
X    -jpg -jpggray -jpeg -jpeggray
X                        produce JPG image
X    -gif -gifmono       produce GIF image
X    -[no]mono		monochrome/colour rendition
X    -res XXX		resolution (default = 82)
X    -scale XXX		scaling factor
X    -[no]pbm		GIF only: [do not] convert via pbm format
X    -output XXX		output to this file (only one input file)
X    -help		this message
X    -ident		show identification
X    -verbose		verbose information
X
X
X=head1 AUTHOR
X
XJohan Vromans, E<lt>jvromans@squirrel.nlE<gt>.
X
X=head1 BUGS
X
XGhostScript and, if required, the PBM package, need to be installed and
Xaccessible through the user's C<PATH>.
X
XGhostScript is assumed to be capable of handling all the image types
Xlisted above.
X
X=head1 COPYRIGHT AND DISCLAIMER
X
XThis program is Copyright 1994,2000 by Johan Vromans.
XThis program is free software; you can redistribute it and/or
Xmodify it under the terms of the Perl Artistic License or the
XGNU General Public License as published by the Free Software
XFoundation; either version 2 of the License, or (at your option) any
Xlater version.
X
XThis program is distributed in the hope that it will be useful,
Xbut WITHOUT ANY WARRANTY; without even the implied warranty of
XMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XGNU General Public License for more details.
X
XIf you do not have a copy of the GNU General Public License write to
Xthe Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
XMA 02139, USA.
X
X=cut
END-of-eps2png/work/eps2png-1.7/blib/script/eps2png
echo x - eps2png/work/eps2png-1.7/Makefile
sed 's/^X//' >eps2png/work/eps2png-1.7/Makefile << 'END-of-eps2png/work/eps2png-1.7/Makefile'
X# This Makefile is for the eps2png extension to perl.
X#
X# It was generated automatically by MakeMaker version
X# 5.4302 (Revision: 1.222) from the contents of
X# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
X#
X#	ANY CHANGES MADE HERE WILL BE LOST!
X#
X#   MakeMaker ARGV: ()
X#
X#   MakeMaker Parameters:
X
X#	ABSTRACT => q[Modules to get info for/from PostScript fonts]
X#	AUTHOR => q[Johan Vromans (jvromans@squirrel.nl)]
X#	EXE_FILES => [q[script/eps2png]]
X#	NAME => q[eps2png]
X#	PREREQ_PM => { Getopt::Long=>q[2.1] }
X#	VERSION => q[1.7]
X
X# --- MakeMaker post_initialize section:
X
X
X# --- MakeMaker const_config section:
X
X# These definitions are from config.sh (via /usr/libdata/perl/5.00503/mach/Config.pm)
X
X# They may have been overridden via Makefile.PL or on the command line
XAR = ar
XCC = cc
XCCCDLFLAGS = -DPIC -fpic
XCCDLFLAGS =  -Wl,-R/usr/lib
XDLEXT = so
XDLSRC = dl_dlopen.xs
XLD = cc
XLDDLFLAGS = -Wl,-E -shared -lperl -lm 
XLDFLAGS = -Wl,-E -lperl -lm 
XLIBC = 
XLIB_EXT = .a
XOBJ_EXT = .o
XOSNAME = freebsd
XOSVERS = 4.0-current
XRANLIB = :
XSO = so
XEXE_EXT = 
X
X
X# --- MakeMaker constants section:
XAR_STATIC_ARGS = cr
XNAME = eps2png
XDISTNAME = eps2png
XNAME_SYM = eps2png
XVERSION = 1.7
XVERSION_SYM = 1_7
XXS_VERSION = 1.7
XINST_BIN = blib/bin
XINST_EXE = blib/script
XINST_LIB = blib/lib
XINST_ARCHLIB = blib/arch
XINST_SCRIPT = blib/script
XPREFIX = /usr
XINSTALLDIRS = site
XINSTALLPRIVLIB = /usr/libdata/perl/5.00503
XINSTALLARCHLIB = /usr/libdata/perl/5.00503/mach
XINSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005
XINSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
XINSTALLBIN = $(PREFIX)/bin
XINSTALLSCRIPT = $(PREFIX)/bin
XPERL_LIB = /usr/libdata/perl/5.00503
XPERL_ARCHLIB = /usr/libdata/perl/5.00503/mach
XSITELIBEXP = /usr/local/lib/perl5/site_perl/5.005
XSITEARCHEXP = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
XLIBPERL_A = libperl.a
XFIRST_MAKEFILE = Makefile
XMAKE_APERL_FILE = Makefile.aperl
XPERLMAINCC = $(CC)
XPERL_INC = /usr/libdata/perl/5.00503/mach/CORE
XPERL = /usr/bin/perl5.00503
XFULLPERL = /usr/bin/perl5.00503
X
XVERSION_MACRO = VERSION
XDEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
XXS_VERSION_MACRO = XS_VERSION
XXS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
X
XMAKEMAKER = /usr/libdata/perl/5.00503/ExtUtils/MakeMaker.pm
XMM_VERSION = 5.4302
X
X# FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle).
X# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle)
X# ROOTEXT = Directory part of FULLEXT with leading slash (eg /DBD)  !!! Deprecated from MM 5.32  !!!
X# PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar)
X# DLBASE  = Basename part of dynamic library. May be just equal BASEEXT.
XFULLEXT = eps2png
XBASEEXT = eps2png
XDLBASE = $(BASEEXT)
XOBJECT = 
XLDFROM = $(OBJECT)
XLINKTYPE = dynamic
X
X# Handy lists of source code files:
XXS_FILES= 
XC_FILES = 
XO_FILES = 
XH_FILES = 
XMAN1PODS = script/eps2png
XMAN3PODS = 
XINST_MAN1DIR = blib/man1
XINSTALLMAN1DIR = /usr/local/man/man1
XMAN1EXT = 1
XINST_MAN3DIR = blib/man3
XINSTALLMAN3DIR = /usr/local/lib/perl5/5.00503/man/man3
XMAN3EXT = 3
XPERM_RW = 644
XPERM_RWX = 755
X
X# work around a famous dec-osf make(1) feature(?):
Xmakemakerdflt: all
X
X.SUFFIXES: .xs .c .C .cpp .cxx .cc $(OBJ_EXT)
X
X# Nick wanted to get rid of .PRECIOUS. I don't remember why. I seem to recall, that
X# some make implementations will delete the Makefile when we rebuild it. Because
X# we call false(1) when we rebuild it. So make(1) is not completely wrong when it
X# does so. Our milage may vary.
X# .PRECIOUS: Makefile    # seems to be not necessary anymore
X
X.PHONY: all config static dynamic test linkext manifest
X
X# Where is the Config information that we are using/depend on
XCONFIGDEP = $(PERL_ARCHLIB)/Config.pm $(PERL_INC)/config.h
X
X# Where to put things:
XINST_LIBDIR      = $(INST_LIB)
XINST_ARCHLIBDIR  = $(INST_ARCHLIB)
X
XINST_AUTODIR     = $(INST_LIB)/auto/$(FULLEXT)
XINST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT)
X
XINST_STATIC  =
XINST_DYNAMIC =
XINST_BOOT    =
X
XEXPORT_LIST = 
X
XPERL_ARCHIVE = 
X
XTO_INST_PM = 
X
XPM_TO_BLIB = 
X
X
X# --- MakeMaker tool_autosplit section:
X
X# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
XAUTOSPLITFILE = $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -e 'use AutoSplit;autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1) ;'
X
X
X# --- MakeMaker tool_xsubpp section:
X
X
X# --- MakeMaker tools_other section:
X
XSHELL = /bin/sh
XCHMOD = chmod
XCP = cp
XLD = cc
XMV = mv
XNOOP = $(SHELL) -c true
XRM_F = rm -f
XRM_RF = rm -rf
XTEST_F = test -f
XTOUCH = touch
XUMASK_NULL = umask 0
XDEV_NULL = > /dev/null 2>&1
X
X# The following is a portable way to say mkdir -p
X# To see which directories are created, change the if 0 to if 1
XMKPATH = $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Command -e mkpath
X
X# This helps us to minimize the effect of the .exists files A yet
X# better solution would be to have a stable file in the perl
X# distribution with a timestamp of zero. But this solution doesn't
X# need any changes to the core distribution and works with older perls
XEQUALIZE_TIMESTAMP = $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Command -e eqtime
X
X# Here we warn users that an old packlist file was found somewhere,
X# and that they should call some uninstall routine
XWARN_IF_OLD_PACKLIST = $(PERL) -we 'exit unless -f $$ARGV[0];' \
X-e 'print "WARNING: I have found an old package in\n";' \
X-e 'print "\t$$ARGV[0].\n";' \
X-e 'print "Please make sure the two installations are not conflicting\n";'
X
XUNINST=0
XVERBINST=1
X
XMOD_INSTALL = $(PERL) -I$(INST_LIB) -I$(PERL_LIB) -MExtUtils::Install \
X-e "install({@ARGV},'$(VERBINST)',0,'$(UNINST)');"
X
XDOC_INSTALL = $(PERL) -e '$$\="\n\n";' \
X-e 'print "=head2 ", scalar(localtime), ": C<", shift, ">", " L<", shift, ">";' \
X-e 'print "=over 4";' \
X-e 'while (defined($$key = shift) and defined($$val = shift)){print "=item *";print "C<$$key: $$val>";}' \
X-e 'print "=back";'
X
XUNINSTALL =   $(PERL) -MExtUtils::Install \
X-e 'uninstall($$ARGV[0],1,1); print "\nUninstall is deprecated. Please check the";' \
X-e 'print " packlist above carefully.\n  There may be errors. Remove the";' \
X-e 'print " appropriate files manually.\n  Sorry for the inconveniences.\n"'
X
X
X# --- MakeMaker dist section:
X
XDISTVNAME = $(DISTNAME)-$(VERSION)
XTAR  = tar
XTARFLAGS = cvf
XZIP  = zip
XZIPFLAGS = -r
XCOMPRESS = gzip --best
XSUFFIX = .gz
XSHAR = shar
XPREOP = @$(NOOP)
XPOSTOP = @$(NOOP)
XTO_UNIX = @$(NOOP)
XCI = ci -u
XRCS_LABEL = rcs -Nv$(VERSION_SYM): -q
XDIST_CP = best
XDIST_DEFAULT = tardist
X
X
X# --- MakeMaker macro section:
X
X
X# --- MakeMaker depend section:
X
X
X# --- MakeMaker cflags section:
X
X
X# --- MakeMaker const_loadlibs section:
X
X
X# --- MakeMaker const_cccmd section:
X
X
X# --- MakeMaker post_constants section:
X
X
X# --- MakeMaker pasthru section:
X
XPASTHRU = LIB="$(LIB)"\
X	LIBPERL_A="$(LIBPERL_A)"\
X	LINKTYPE="$(LINKTYPE)"\
X	PREFIX="$(PREFIX)"\
X	OPTIMIZE="$(OPTIMIZE)"
X
X
X# --- MakeMaker c_o section:
X
X
X# --- MakeMaker xs_c section:
X
X
X# --- MakeMaker xs_o section:
X
X
X# --- MakeMaker top_targets section:
X
X#all ::	config $(INST_PM) subdirs linkext manifypods
X
Xall :: pure_all manifypods
X	@$(NOOP)
X
Xpure_all :: config pm_to_blib subdirs linkext
X	@$(NOOP)
X
Xsubdirs :: $(MYEXTLIB)
X	@$(NOOP)
X
Xconfig :: Makefile $(INST_LIBDIR)/.exists
X	@$(NOOP)
X
Xconfig :: $(INST_ARCHAUTODIR)/.exists
X	@$(NOOP)
X
Xconfig :: $(INST_AUTODIR)/.exists
X	@$(NOOP)
X
Xconfig :: Version_check
X	@$(NOOP)
X
X
X$(INST_AUTODIR)/.exists :: /usr/libdata/perl/5.00503/mach/CORE/perl.h
X	@$(MKPATH) $(INST_AUTODIR)
X	@$(EQUALIZE_TIMESTAMP) /usr/libdata/perl/5.00503/mach/CORE/perl.h $(INST_AUTODIR)/.exists
X
X	-@$(CHMOD) $(PERM_RWX) $(INST_AUTODIR)
X
X$(INST_LIBDIR)/.exists :: /usr/libdata/perl/5.00503/mach/CORE/perl.h
X	@$(MKPATH) $(INST_LIBDIR)
X	@$(EQUALIZE_TIMESTAMP) /usr/libdata/perl/5.00503/mach/CORE/perl.h $(INST_LIBDIR)/.exists
X
X	-@$(CHMOD) $(PERM_RWX) $(INST_LIBDIR)
X
X$(INST_ARCHAUTODIR)/.exists :: /usr/libdata/perl/5.00503/mach/CORE/perl.h
X	@$(MKPATH) $(INST_ARCHAUTODIR)
X	@$(EQUALIZE_TIMESTAMP) /usr/libdata/perl/5.00503/mach/CORE/perl.h $(INST_ARCHAUTODIR)/.exists
X
X	-@$(CHMOD) $(PERM_RWX) $(INST_ARCHAUTODIR)
X
Xconfig :: $(INST_MAN1DIR)/.exists
X	@$(NOOP)
X
X
X$(INST_MAN1DIR)/.exists :: /usr/libdata/perl/5.00503/mach/CORE/perl.h
X	@$(MKPATH) $(INST_MAN1DIR)
X	@$(EQUALIZE_TIMESTAMP) /usr/libdata/perl/5.00503/mach/CORE/perl.h $(INST_MAN1DIR)/.exists
X
X	-@$(CHMOD) $(PERM_RWX) $(INST_MAN1DIR)
X
Xhelp:
X	perldoc ExtUtils::MakeMaker
X
XVersion_check:
X	@$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) \
X		-MExtUtils::MakeMaker=Version_check \
X		-e "Version_check('$(MM_VERSION)')"
X
X
X# --- MakeMaker linkext section:
X
Xlinkext :: $(LINKTYPE)
X	@$(NOOP)
X
X
X# --- MakeMaker dlsyms section:
X
X
X# --- MakeMaker dynamic section:
X
X## $(INST_PM) has been moved to the all: target.
X## It remains here for awhile to allow for old usage: "make dynamic"
X#dynamic :: Makefile $(INST_DYNAMIC) $(INST_BOOT) $(INST_PM)
Xdynamic :: Makefile $(INST_DYNAMIC) $(INST_BOOT)
X	@$(NOOP)
X
X
X# --- MakeMaker dynamic_bs section:
X
XBOOTSTRAP =
X
X
X# --- MakeMaker dynamic_lib section:
X
X
X# --- MakeMaker static section:
X
X## $(INST_PM) has been moved to the all: target.
X## It remains here for awhile to allow for old usage: "make static"
X#static :: Makefile $(INST_STATIC) $(INST_PM)
Xstatic :: Makefile $(INST_STATIC)
X	@$(NOOP)
X
X
X# --- MakeMaker static_lib section:
X
X
X# --- MakeMaker manifypods section:
XPOD2MAN_EXE = /usr/bin/pod2man
XPOD2MAN = $(PERL) -we '%m=@ARGV;for (keys %m){' \
X-e 'next if -e $$m{$$_} && -M $$m{$$_} < -M $$_ && -M $$m{$$_} < -M "Makefile";' \
X-e 'print "Manifying $$m{$$_}\n";' \
X-e 'system(qq[$$^X ].q["-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" $(POD2MAN_EXE) ].qq[$$_>$$m{$$_}])==0 or warn "Couldn\047t install $$m{$$_}\n";' \
X-e 'chmod(oct($(PERM_RW))), $$m{$$_} or warn "chmod $(PERM_RW) $$m{$$_}: $$!\n";}'
X
Xmanifypods : pure_all script/eps2png
X	@$(POD2MAN) \
X	script/eps2png \
X	$(INST_MAN1DIR)/eps2png.$(MAN1EXT)
X
X# --- MakeMaker processPL section:
X
X
X# --- MakeMaker installbin section:
X
X$(INST_SCRIPT)/.exists :: /usr/libdata/perl/5.00503/mach/CORE/perl.h
X	@$(MKPATH) $(INST_SCRIPT)
X	@$(EQUALIZE_TIMESTAMP) /usr/libdata/perl/5.00503/mach/CORE/perl.h $(INST_SCRIPT)/.exists
X
X	-@$(CHMOD) $(PERM_RWX) $(INST_SCRIPT)
X
XEXE_FILES = script/eps2png
X
XFIXIN = $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::MakeMaker \
X    -e "MY->fixin(shift)"
X
Xpure_all :: $(INST_SCRIPT)/eps2png
X	@$(NOOP)
X
Xrealclean ::
X	rm -f $(INST_SCRIPT)/eps2png
X
X$(INST_SCRIPT)/eps2png: script/eps2png Makefile $(INST_SCRIPT)/.exists
X	@rm -f $(INST_SCRIPT)/eps2png
X	cp script/eps2png $(INST_SCRIPT)/eps2png
X	$(FIXIN) $(INST_SCRIPT)/eps2png
X	-@$(CHMOD) $(PERM_RWX) $(INST_SCRIPT)/eps2png
X
X
X# --- MakeMaker subdirs section:
X
X# none
X
X# --- MakeMaker clean section:
X
X# Delete temporary files but do not touch installed files. We don't delete
X# the Makefile here so a later make realclean still has a makefile to use.
X
Xclean ::
X	-rm -rf ./blib $(MAKE_APERL_FILE) $(INST_ARCHAUTODIR)/extralibs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *$(OBJ_EXT) *$(LIB_EXT) perl.exe $(BOOTSTRAP) $(BASEEXT).bso $(BASEEXT).def $(BASEEXT).exp
X	-mv Makefile Makefile.old $(DEV_NULL)
X
X
X# --- MakeMaker realclean section:
X
X# Delete temporary files (via clean) and also delete installed files
Xrealclean purge ::  clean
X	rm -rf $(INST_AUTODIR) $(INST_ARCHAUTODIR)
X	rm -rf Makefile Makefile.old
X
X
X# --- MakeMaker dist_basics section:
X
Xdistclean :: realclean distcheck
X
Xdistcheck :
X	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Manifest=fullcheck \
X		-e fullcheck
X
Xskipcheck :
X	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Manifest=skipcheck \
X		-e skipcheck
X
Xmanifest :
X	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Manifest=mkmanifest \
X		-e mkmanifest
X
X
X# --- MakeMaker dist_core section:
X
Xdist : $(DIST_DEFAULT)
X	@$(PERL) -le 'print "Warning: Makefile possibly out of date with $$vf" if ' \
X	    -e '-e ($$vf="$(VERSION_FROM)") and -M $$vf < -M "Makefile";'
X
Xtardist : $(DISTVNAME).tar$(SUFFIX)
X
Xzipdist : $(DISTVNAME).zip
X
X$(DISTVNAME).tar$(SUFFIX) : distdir
X	$(PREOP)
X	$(TO_UNIX)
X	$(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME)
X	$(RM_RF) $(DISTVNAME)
X	$(COMPRESS) $(DISTVNAME).tar
X	$(POSTOP)
X
X$(DISTVNAME).zip : distdir
X	$(PREOP)
X	$(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME)
X	$(RM_RF) $(DISTVNAME)
X	$(POSTOP)
X
Xuutardist : $(DISTVNAME).tar$(SUFFIX)
X	uuencode $(DISTVNAME).tar$(SUFFIX) \
X		$(DISTVNAME).tar$(SUFFIX) > \
X		$(DISTVNAME).tar$(SUFFIX)_uu
X
Xshdist : distdir
X	$(PREOP)
X	$(SHAR) $(DISTVNAME) > $(DISTVNAME).shar
X	$(RM_RF) $(DISTVNAME)
X	$(POSTOP)
X
X
X# --- MakeMaker dist_dir section:
X
Xdistdir :
X	$(RM_RF) $(DISTVNAME)
X	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Manifest=manicopy,maniread \
X		-e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');"
X
X
X# --- MakeMaker dist_test section:
X
Xdisttest : distdir
X	cd $(DISTVNAME) && $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) Makefile.PL
X	cd $(DISTVNAME) && $(MAKE)
X	cd $(DISTVNAME) && $(MAKE) test
X
X
X# --- MakeMaker dist_ci section:
X
Xci :
X	$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Manifest=maniread \
X		-e "@all = keys %{ maniread() };" \
X		-e 'print("Executing $(CI) @all\n"); system("$(CI) @all");' \
X		-e 'print("Executing $(RCS_LABEL) ...\n"); system("$(RCS_LABEL) @all");'
X
X
X# --- MakeMaker install section:
X
Xinstall :: all pure_install doc_install
X
Xinstall_perl :: all pure_perl_install doc_perl_install
X
Xinstall_site :: all pure_site_install doc_site_install
X
Xinstall_ :: install_site
X	@echo INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
X
Xpure_install :: pure_$(INSTALLDIRS)_install
X
Xdoc_install :: doc_$(INSTALLDIRS)_install
X	@echo Appending installation info to $(INSTALLARCHLIB)/perllocal.pod
X
Xpure__install : pure_site_install
X	@echo INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
X
Xdoc__install : doc_site_install
X	@echo INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
X
Xpure_perl_install ::
X	@$(MOD_INSTALL) \
X		read $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist \
X		write $(INSTALLARCHLIB)/auto/$(FULLEXT)/.packlist \
X		$(INST_LIB) $(INSTALLPRIVLIB) \
X		$(INST_ARCHLIB) $(INSTALLARCHLIB) \
X		$(INST_BIN) $(INSTALLBIN) \
X		$(INST_SCRIPT) $(INSTALLSCRIPT) \
X		$(INST_MAN1DIR) $(INSTALLMAN1DIR) \
X		$(INST_MAN3DIR) $(INSTALLMAN3DIR)
X	@$(WARN_IF_OLD_PACKLIST) \
X		$(SITEARCHEXP)/auto/$(FULLEXT)
X
X
Xpure_site_install ::
X	@$(MOD_INSTALL) \
X		read $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist \
X		write $(INSTALLSITEARCH)/auto/$(FULLEXT)/.packlist \
X		$(INST_LIB) $(INSTALLSITELIB) \
X		$(INST_ARCHLIB) $(INSTALLSITEARCH) \
X		$(INST_BIN) $(INSTALLBIN) \
X		$(INST_SCRIPT) $(INSTALLSCRIPT) \
X		$(INST_MAN1DIR) $(INSTALLMAN1DIR) \
X		$(INST_MAN3DIR) $(INSTALLMAN3DIR)
X	@$(WARN_IF_OLD_PACKLIST) \
X		$(PERL_ARCHLIB)/auto/$(FULLEXT)
X
Xdoc_perl_install ::
X	-@$(DOC_INSTALL) \
X		"Module" "$(NAME)" \
X		"installed into" "$(INSTALLPRIVLIB)" \
X		LINKTYPE "$(LINKTYPE)" \
X		VERSION "$(VERSION)" \
X		EXE_FILES "$(EXE_FILES)" \
X		>> $(INSTALLARCHLIB)/perllocal.pod
X
Xdoc_site_install ::
X	-@$(DOC_INSTALL) \
X		"Module" "$(NAME)" \
X		"installed into" "$(INSTALLSITELIB)" \
X		LINKTYPE "$(LINKTYPE)" \
X		VERSION "$(VERSION)" \
X		EXE_FILES "$(EXE_FILES)" \
X		>> $(INSTALLARCHLIB)/perllocal.pod
X
X
Xuninstall :: uninstall_from_$(INSTALLDIRS)dirs
X
Xuninstall_from_perldirs ::
X	@$(UNINSTALL) $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist
X
Xuninstall_from_sitedirs ::
X	@$(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist
X
X
X# --- MakeMaker force section:
X# Phony target to force checking subdirectories.
XFORCE:
X	@$(NOOP)
X
X
X# --- MakeMaker perldepend section:
X
X
X# --- MakeMaker makefile section:
X
X# We take a very conservative approach here, but it\'s worth it.
X# We move Makefile to Makefile.old here to avoid gnu make looping.
XMakefile : Makefile.PL $(CONFIGDEP)
X	@echo "Makefile out-of-date with respect to $?"
X	@echo "Cleaning current config before rebuilding Makefile..."
X	-@$(RM_F) Makefile.old
X	-@$(MV) Makefile Makefile.old
X	-$(MAKE) -f Makefile.old clean $(DEV_NULL) || $(NOOP)
X	$(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" Makefile.PL 
X	@echo "==> Your Makefile has been rebuilt. <=="
X	@echo "==> Please rerun the make command.  <=="
X	false
X
X# To change behavior to :: would be nice, but would break Tk b9.02
X# so you find such a warning below the dist target.
X#Makefile :: $(VERSION_FROM)
X#	@echo "Warning: Makefile possibly out of date with $(VERSION_FROM)"
X
X
X# --- MakeMaker staticmake section:
X
X# --- MakeMaker makeaperl section ---
XMAP_TARGET    = perl
XFULLPERL      = /usr/bin/perl5.00503
X
X$(MAP_TARGET) :: static $(MAKE_APERL_FILE)
X	$(MAKE) -f $(MAKE_APERL_FILE) $@
X
X$(MAKE_APERL_FILE) : $(FIRST_MAKEFILE)
X	@echo Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET)
X	@$(PERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) \
X		Makefile.PL DIR= \
X		MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \
X		MAKEAPERL=1 NORECURS=1 CCCDLFLAGS=
X
X
X# --- MakeMaker test section:
X
XTEST_VERBOSE=0
XTEST_TYPE=test_$(LINKTYPE)
XTEST_FILE = test.pl
XTEST_FILES = 
XTESTDB_SW = -d
X
Xtestdb :: testdb_$(LINKTYPE)
X
Xtest :: $(TEST_TYPE)
X	@echo 'No tests defined for $(NAME) extension.'
X
Xtest_dynamic :: pure_all
X
Xtestdb_dynamic :: pure_all
X	PERL_DL_NONLAZY=1 $(FULLPERL) $(TESTDB_SW) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(TEST_FILE)
X
Xtest_ : test_dynamic
X
Xtest_static :: test_dynamic
Xtestdb_static :: testdb_dynamic
X
X
X# --- MakeMaker ppd section:
X# Creates a PPD (Perl Package Description) for a binary distribution.
Xppd:
X	@$(PERL) -e "print qq{<SOFTPKG NAME=\"eps2png\" VERSION=\"1,7,0,0\">\n}. qq{\t<TITLE>eps2png</TITLE>\n}. qq{\t<ABSTRACT>Modules to get info for/from PostScript fonts</ABSTRACT>\n}. qq{\t<AUTHOR>Johan Vromans (jvromans\@squirrel.nl)</AUTHOR>\n}. qq{\t<IMPLEMENTATION>\n}. qq{\t\t<DEPENDENCY NAME=\"Getopt-Long\" VERSION=\"2,1,0,0\" />\n}. qq{\t\t<OS NAME=\"$(OSNAME)\" />\n}. qq{\t\t<ARCHITECTURE NAME=\"i386-freebsd\" />\n}. qq{\t\t<CODEBASE HREF=\"\" />\n}. qq{\t</IMPLEMENTATION>\n}. qq{</SOFTPKG>\n}" > eps2png.ppd
X
X# --- MakeMaker pm_to_blib section:
X
Xpm_to_blib: $(TO_INST_PM)
X	@$(PERL) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" \
X	"-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -MExtUtils::Install \
X        -e "pm_to_blib({qw{$(PM_TO_BLIB)}},'$(INST_LIB)/auto')"
X	@$(TOUCH) $@
X
X
X# --- MakeMaker selfdocument section:
X
X
X# --- MakeMaker postamble section:
X
X
X# End.
END-of-eps2png/work/eps2png-1.7/Makefile
echo x - eps2png/work/eps2png-1.7/pm_to_blib
sed 's/^X//' >eps2png/work/eps2png-1.7/pm_to_blib << 'END-of-eps2png/work/eps2png-1.7/pm_to_blib'
END-of-eps2png/work/eps2png-1.7/pm_to_blib
echo x - eps2png/work/.extract_done
sed 's/^X//' >eps2png/work/.extract_done << 'END-of-eps2png/work/.extract_done'
END-of-eps2png/work/.extract_done
echo x - eps2png/work/.patch_done
sed 's/^X//' >eps2png/work/.patch_done << 'END-of-eps2png/work/.patch_done'
END-of-eps2png/work/.patch_done
echo x - eps2png/work/.configure_done
sed 's/^X//' >eps2png/work/.configure_done << 'END-of-eps2png/work/.configure_done'
END-of-eps2png/work/.configure_done
echo x - eps2png/work/.build_done
sed 's/^X//' >eps2png/work/.build_done << 'END-of-eps2png/work/.build_done'
END-of-eps2png/work/.build_done
echo x - eps2png/work/.PLIST.mktmp
sed 's/^X//' >eps2png/work/.PLIST.mktmp << 'END-of-eps2png/work/.PLIST.mktmp'
Xman/man1/eps2png.1.gz
Xbin/eps2png
X@unexec if [ -f %D/info/dir ]; then if sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then true; else rm %D/info/dir; fi; fi
END-of-eps2png/work/.PLIST.mktmp
echo x - eps2png/work/.install_done
sed 's/^X//' >eps2png/work/.install_done << 'END-of-eps2png/work/.install_done'
END-of-eps2png/work/.install_done
echo x - eps2png/work/.PLIST.setuid
sed 's/^X//' >eps2png/work/.PLIST.setuid << 'END-of-eps2png/work/.PLIST.setuid'
END-of-eps2png/work/.PLIST.setuid
echo x - eps2png/work/.PLIST.startup
sed 's/^X//' >eps2png/work/.PLIST.startup << 'END-of-eps2png/work/.PLIST.startup'
END-of-eps2png/work/.PLIST.startup
echo x - eps2png/distinfo
sed 's/^X//' >eps2png/distinfo << 'END-of-eps2png/distinfo'
XMD5 (eps2png-1.7.tar.gz) = f544002e17b5f61c281015f3b765d98e
END-of-eps2png/distinfo
echo x - eps2png/pkg-plist
sed 's/^X//' >eps2png/pkg-plist << 'END-of-eps2png/pkg-plist'
Xbin/eps2png
END-of-eps2png/pkg-plist
echo x - eps2png/pkg-descr
sed 's/^X//' >eps2png/pkg-descr << 'END-of-eps2png/pkg-descr'
Xeps2png is a EPS (ecapuslated PostScript) to PNG (Portable Network
XGraphic) format converter.
X
XThis is simply a wrapper around GhostScript with a bit of fiddling
Xto allow you to resize stuff.  It actually works pretty well.
X  Patrick Powell <papowell@astart.com>
X
XOriginal Author:  Johan Vromans, <jvromans@squirrel.nl>.
X
XWebsite: CPAN Archives or http://www.cpan.org/authors/id/JV/
END-of-eps2png/pkg-descr
echo x - eps2png/pkg-comment
sed 's/^X//' >eps2png/pkg-comment << 'END-of-eps2png/pkg-comment'
XEps (encapuslated PostScript) to png converter
END-of-eps2png/pkg-comment
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Feb 25 18:22:14 PST 2001 
State-Changed-Why:  
Nik has already committed this port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24389 
>Unformatted:
