summaryrefslogtreecommitdiff
path: root/print/psutils
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-02-22 20:32:08 +0000
committerfrueauf <frueauf>1998-02-22 20:32:08 +0000
commit61afff84b193242cfb602402caa48535673fecf2 (patch)
tree0028ab2f4c0509d1b798ca9f0b36729486f963fc /print/psutils
parent4cb645c55915222fae536adc1c823943198eb289 (diff)
downloadpkgsrc-61afff84b193242cfb602402caa48535673fecf2.tar.gz
Initial importf of psutils-p17 FreeBSD port.
Diffstat (limited to 'print/psutils')
-rw-r--r--print/psutils/Makefile67
-rw-r--r--print/psutils/files/md51
-rw-r--r--print/psutils/pkg/COMMENT1
-rw-r--r--print/psutils/pkg/DESCR21
-rw-r--r--print/psutils/pkg/PLIST43
-rw-r--r--print/psutils/scripts/configure11
6 files changed, 144 insertions, 0 deletions
diff --git a/print/psutils/Makefile b/print/psutils/Makefile
new file mode 100644
index 00000000000..1a10791a07f
--- /dev/null
+++ b/print/psutils/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: psutils
+# Version required: 1.16
+# Date created: 21 September 1994
+# Whom: jmz & David O'Brien (obrien@cs.ucdavis.edu)
+#
+# $NetBSD: Makefile,v 1.1.1.1 1998/02/22 20:32:08 frueauf Exp $
+# FreeBSD Id: Makefile,v 1.15 1998/01/08 18:52:13 fenner Exp
+#
+
+DISTNAME= psutils-p17
+PKGNAME= psutils-${PAPERSIZE}-1.17
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.dcs.ed.ac.uk/pub/ajcd/
+
+MAINTAINER= jmz@FreeBSD.org
+
+MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to letter a4
+WRKSRC= ${WRKDIR}/psutils
+MAKE_FLAGS?= PAPER=${PAPERSIZE} -f
+MAN1= psbook.1 psselect.1 pstops.1 epsffit.1 psnup.1 psresize.1 \
+ getafm.1 fixdlsrps.1 fixfmps.1 fixmacps.1 fixpsditps.1 \
+ fixpspps.1 fixtpps.1 fixwfwps.1 fixwpps.1 fixwwps.1 \
+ extractres.1 includeres.1 fixscribeps.1 psmerge.1
+
+
+##package:: letter a4
+
+letter::
+ ${MAKE} PAPERSIZE=letter
+
+letter-install::
+ ${MAKE} PAPERSIZE=letter install
+
+a4::
+ ${MAKE} PAPERSIZE=a4
+
+
+.if !defined(PAPERSIZE)
+PAPERSIZE=a4
+PAPERSIZE_UNSPECIFIED= yes
+.else
+.if ${PAPERSIZE} != A3 && ${PAPERSIZE} != a3 && ${PAPERSIZE} != A4 \
+ && ${PAPERSIZE} != a4 && ${PAPERSIZE} != A5 && ${PAPERSIZE} != a5 \
+ && ${PAPERSIZE} != B5 && ${PAPERSIZE} != b5 \
+ && ${PAPERSIZE} != letter && ${PAPERSIZE} != legal \
+ && ${PAPERSIZE} != ledger && ${PAPERSIZE} != tabloid \
+ && ${PAPERSIZE} != statement && ${PAPERSIZE} != executive \
+ && ${PAPERSIZE} != folio && ${PAPERSIZE} != quarto && ${PAPERSIZE} != 10x14
+PAPERSIZE_INVALID= yes
+.endif
+.endif
+
+pre-fetch:
+.if defined(PAPERSIZE_UNSPECIFIED)
+ @echo "Defaulting to ${PAPERSIZE} sized paper."
+ @echo ""
+ @echo "Set the environment variable PAPERSIZE if you want to use other sizes."
+ @echo "Possible values are: A3, A4 (default), A5, B5, letter, legal,"
+ @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14."
+.elif defined(PAPERSIZE_INVALID)
+ @echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
+ @echo "Possible values are: A3, A4 (default), A5, B5, letter, legal,"
+ @echo " ledger, tabloid, statement, executive, folio, quarto, and 10x14."
+ @/usr/bin/false
+.endif
+
+.include <bsd.port.mk>
diff --git a/print/psutils/files/md5 b/print/psutils/files/md5
new file mode 100644
index 00000000000..f08af98d246
--- /dev/null
+++ b/print/psutils/files/md5
@@ -0,0 +1 @@
+MD5 (psutils-p17.tar.gz) = b161522f3bd1507655326afa7db4a0ad
diff --git a/print/psutils/pkg/COMMENT b/print/psutils/pkg/COMMENT
new file mode 100644
index 00000000000..a914bb6ebc3
--- /dev/null
+++ b/print/psutils/pkg/COMMENT
@@ -0,0 +1 @@
+Utilities for manipulating PostScript documents.
diff --git a/print/psutils/pkg/DESCR b/print/psutils/pkg/DESCR
new file mode 100644
index 00000000000..8c03cd71cfb
--- /dev/null
+++ b/print/psutils/pkg/DESCR
@@ -0,0 +1,21 @@
+psbook rearranges pages into signatures
+psselect selects pages and page ranges
+pstops performs general page rearrangement and selection
+psnup put multiple pages per physical sheet of paper
+psresize alter document paper size
+epsffit fits an EPSF file to a given bounding box
+getafm (sh) outputs PostScript to retrieve AFM file from printer
+showchar (sh) outputs PostScript to draw a character with metric info
+fixdlsrps (perl) filter to fix DviLaser/PS output so that PSUtils works
+fixfmps (perl) filter to fix framemaker documents so that psselect etc. work
+fixmacps (perl) filter to fix Macintosh documents with saner version of md
+fixpsditps (perl) filter to fix Transcript psdit documents to work with PSUtils
+fixpspps (perl) filter to fix PSPrint PostScript so that psselect etc. work
+fixscribeps (perl) filter to fix Scribe PostScript so that psselect etc. work
+fixtpps (perl) filter to fix Troff Tpscript documents
+fixwfwps (perl) filter to fix Word for Windows documents for PSUtils
+fixwpps (perl) filter to fix WordPerfect documents for PSUtils
+fixwwps (perl) filter to fix Windows Write documents for PSUtils
+extractres (perl) filter to extract resources from PostScript files
+includeres (perl) filter to include resources into PostScript files
+psmerge (perl) hack script to merge multiple PostScript files
diff --git a/print/psutils/pkg/PLIST b/print/psutils/pkg/PLIST
new file mode 100644
index 00000000000..7fb96342d0a
--- /dev/null
+++ b/print/psutils/pkg/PLIST
@@ -0,0 +1,43 @@
+bin/psbook
+bin/psselect
+bin/pstops
+bin/epsffit
+bin/psnup
+bin/psresize
+bin/getafm
+bin/fixfmps
+bin/fixmacps
+bin/fixpsditps
+bin/fixpspps
+bin/fixtpps
+bin/fixwfwps
+bin/fixwpps
+bin/fixscribeps
+bin/fixwwps
+bin/fixdlsrps
+bin/extractres
+bin/includeres
+bin/psmerge
+bin/showchar
+man/man1/psbook.1.gz
+man/man1/psselect.1.gz
+man/man1/pstops.1.gz
+man/man1/epsffit.1.gz
+man/man1/psnup.1.gz
+man/man1/psresize.1.gz
+man/man1/psmerge.1.gz
+man/man1/fixscribeps.1.gz
+man/man1/getafm.1.gz
+man/man1/fixdlsrps.1.gz
+man/man1/fixfmps.1.gz
+man/man1/fixmacps.1.gz
+man/man1/fixpsditps.1.gz
+man/man1/fixpspps.1.gz
+man/man1/fixtpps.1.gz
+man/man1/fixwfwps.1.gz
+man/man1/fixwpps.1.gz
+man/man1/fixwwps.1.gz
+man/man1/extractres.1.gz
+man/man1/includeres.1.gz
+share/psutils/md68_0.ps
+share/psutils/md71_0.ps
diff --git a/print/psutils/scripts/configure b/print/psutils/scripts/configure
new file mode 100644
index 00000000000..c3293ce9370
--- /dev/null
+++ b/print/psutils/scripts/configure
@@ -0,0 +1,11 @@
+#!/bin/sh
+cd $WRKSRC || exit 1
+cp Makefile.unix Makefile
+cat >>Makefile<<END
+BINDIR = $PREFIX/bin
+INCLUDEDIR = $PREFIX/share/psutils
+MANDIR =$PREFIX/man/man1
+PERL = /usr/bin/perl
+CC=cc
+END
+exit 0