diff --git a/print/ghostview/Makefile b/print/ghostview/Makefile new file mode 100644 index 00000000000..b0179b4d73b --- /dev/null +++ b/print/ghostview/Makefile @@ -0,0 +1,20 @@ +# OpenBSD makefile for: ghostview +# Version required: 1.5 +# Date created: December 2, 1997 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 04:32:18 angelos Exp $ +# + +DISTNAME= ghostview-1.5 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_GNU} + +MAINTAINER= angelos@openbsd.org + +USE_IMAKE= yes + +post-install: + @${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + +.include diff --git a/print/ghostview/files/md5 b/print/ghostview/files/md5 new file mode 100644 index 00000000000..6983bc0df58 --- /dev/null +++ b/print/ghostview/files/md5 @@ -0,0 +1 @@ +MD5 (ghostview-1.5.tar.gz) = 4f5c1bced73fe14b03109cfa7aacfd90 diff --git a/print/ghostview/patches/patch-aa b/print/ghostview/patches/patch-aa new file mode 100644 index 00000000000..62bf2701f2a --- /dev/null +++ b/print/ghostview/patches/patch-aa @@ -0,0 +1,12 @@ +*** misc.c.orig Fri Oct 21 22:36:09 1994 +--- misc.c Fri Oct 21 22:36:20 1994 +*************** +*** 61,67 **** + #include + #else + extern int sys_nerr; +- extern char *sys_errlist[]; + #endif + + #include "Ghostview.h" +--- 61,66 ---- diff --git a/print/ghostview/patches/patch-ab b/print/ghostview/patches/patch-ab new file mode 100644 index 00000000000..6efae3f78d8 --- /dev/null +++ b/print/ghostview/patches/patch-ab @@ -0,0 +1,12 @@ +*** SelFile.c.orig Fri Oct 21 22:37:11 1994 +--- SelFile.c Fri Oct 21 22:37:17 1994 +*************** +*** 46,52 **** + /* BSD 4.3 errno.h does not declare errno */ + extern int errno; + extern int sys_nerr; +- extern char *sys_errlist[]; + + #include + #include +--- 46,51 ---- diff --git a/print/ghostview/pkg/COMMENT b/print/ghostview/pkg/COMMENT new file mode 100644 index 00000000000..c5cc016e0e0 --- /dev/null +++ b/print/ghostview/pkg/COMMENT @@ -0,0 +1 @@ +An X11 front-end for ghostscript, the GNU postscript previewer. diff --git a/print/ghostview/pkg/DESCR b/print/ghostview/pkg/DESCR new file mode 100644 index 00000000000..27043499a0c --- /dev/null +++ b/print/ghostview/pkg/DESCR @@ -0,0 +1,28 @@ + + Ghostview -- An X11 user interface for ghostscript. + +Ghostview is full function user interface for ghostscript 2.4 and later. + +Brief list of features: + - Ghostview parses any known version of Adobe's Document Structuring + Conventions. + - Page size is automatically determined from the Document Structuring + Comments. The user is able to override the values from the comments. + - Window size is set to the bounding box for Encapsulated PostScript figures. + - Default page size is Letter and can be changed via Xresources or + application defaults file to A4 (or any other valid size) for our + European friends. + - Scrollbars appear when necessary. + - Page orientation is automatically determined from the Document Structuring + Comments. The user is able to override the values from the comments. + - Ability to view at 4 orientations: Portrait, Landscape, Upside-down, + and Seascape (for those who rotate landscape the other direction). + - Ability to restrict rendering to grayscale or monochrome. (Requires + ghostscript 2.6.1.) + - Ability to mark pages for printing, or saving. (Good for people that + printed a 100 page document and lost page 59 due to a printer jam.) + - Can popup zoom windows at printer resolution + (1 display dot = 1 printer dot). + + The Ghostview distribution includes a Ghostview Widget that people + are encouraged to use in other programs. diff --git a/print/ghostview/pkg/INSTALL b/print/ghostview/pkg/INSTALL new file mode 100644 index 00000000000..2d7c72fb052 --- /dev/null +++ b/print/ghostview/pkg/INSTALL @@ -0,0 +1,9 @@ +#!/bin/sh +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi +if ! which gs >/dev/null; then + echo "I can't find ghostscript (gs) in your search path." + echo "Please install your favorite version of ghostscript," + echo "otherwise this program is useless." +fi diff --git a/print/ghostview/pkg/PLIST b/print/ghostview/pkg/PLIST new file mode 100644 index 00000000000..34779817eb4 --- /dev/null +++ b/print/ghostview/pkg/PLIST @@ -0,0 +1,3 @@ +bin/ghostview +lib/X11/app-defaults/Ghostview +man/man1/ghostview.1