Add xpdf 0.7 port.

This commit is contained in:
angelos 1997-12-03 03:13:16 +00:00
parent aa992cfec4
commit eb9f560cd5
7 changed files with 171 additions and 0 deletions

18
graphics/xpdf/Makefile Normal file
View File

@ -0,0 +1,18 @@
# OpenBSD makefile for: xpdf
# Version required: 0.7
# Date created: December 2, 1997
# Whom: angelos@openbsd.org
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 03:13:16 angelos Exp $
#
DISTNAME= xpdf-0.7
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.aimnet.com/pub/users/derekn/xpdf/
MAINTAINER= angelos@openbsd.org
USE_X11= yes
MAN1= xpdf.1 pdftops.1 pdftotext.1
.include <bsd.port.mk>

1
graphics/xpdf/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (xpdf-0.7.tar.gz) = a871cade04c8c9e55ff7e45c5ff49b4b

View File

@ -0,0 +1,88 @@
*** Makefile.config.orig Fri May 30 03:29:08 1997
--- Makefile.config Fri May 30 03:31:38 1997
***************
*** 44,50 ****
#------------------------------------------------------------------------
# Binaries and man pages will be installed here:
! PREFIX = /usr/local
# SCO puts stuff here:
#PREFIX = /u
--- 44,50 ----
#------------------------------------------------------------------------
# Binaries and man pages will be installed here:
! PREFIX ?= /usr/X11R6
# SCO puts stuff here:
#PREFIX = /u
*************** EXE =
*** 149,155 ****
#CFLAGS2 = -O2 -Wall -DNO_XPM
# If you're using g++ 2.7.x, you'll want to use -Wno-unused:
! CFLAGS2 = -O2 -Wall -Wno-unused -DNO_XPM
# For Linux/FreeBSD/NetBSD/BSDI systems using XFree86:
#CFLAGS2 = -O2 -Wall -I/usr/X11R6/include -Wno-unused
--- 149,155 ----
#CFLAGS2 = -O2 -Wall -DNO_XPM
# If you're using g++ 2.7.x, you'll want to use -Wno-unused:
! CFLAGS2 = -O2 -pipe -Wall -Wno-unused -I${X11BASE}/include
# For Linux/FreeBSD/NetBSD/BSDI systems using XFree86:
#CFLAGS2 = -O2 -Wall -I/usr/X11R6/include -Wno-unused
*************** CXXFLAGS2 = $(CFLAGS2)
*** 197,209 ****
#------------------------------------------------------------------------
# For most systems, just grab the X library:
! XLIBS = -lX11
# For Linux/FreeBSD/NetBSD/BSDI systems using XFree86:
#XLIBS = -L/usr/X11R6/lib -lX11
# For official FreeBSD port (using the FreeBSD makefiles):
! #XLIBS = -L$(X11BASE)/lib -lX11
# Some BSDI systems may need -lipc (?):
#XLIBS = -L/usr/X11R6/lib -lX11 -lipc
--- 197,209 ----
#------------------------------------------------------------------------
# For most systems, just grab the X library:
! #XLIBS = -lX11
# For Linux/FreeBSD/NetBSD/BSDI systems using XFree86:
#XLIBS = -L/usr/X11R6/lib -lX11
# For official FreeBSD port (using the FreeBSD makefiles):
! XLIBS = -L$(X11BASE)/lib -lX11
# Some BSDI systems may need -lipc (?):
#XLIBS = -L/usr/X11R6/lib -lX11 -lipc
*************** XLIBS = -lX11
*** 242,251 ****
#------------------------------------------------------------------------
# This is needed for the color icon:
! #XPMLIB = -lXpm
# Use this if you don't have libXpm (and also define NO_XPM in CFLAGS2):
! XPMLIB =
#------------------------------------------------------------------------
# C++ compilation rule.
--- 242,251 ----
#------------------------------------------------------------------------
# This is needed for the color icon:
! XPMLIB = -lXpm
# Use this if you don't have libXpm (and also define NO_XPM in CFLAGS2):
! #XPMLIB =
#------------------------------------------------------------------------
# C++ compilation rule.

View File

@ -0,0 +1,49 @@
*** xpdf/Stream.cc.orig Mon May 26 02:28:46 1997
--- xpdf/Stream.cc Tue Dec 2 22:10:07 1997
***************
*** 489,494 ****
--- 489,496 ----
void LZWStream::reset() {
FILE *f;
+ int fdfd;
+ char *zzzz;
str->reset();
bufPtr = bufEnd = buf;
***************
*** 504,515 ****
strcpy(zCmd, uncompressCmd);
strcat(zCmd, " ");
zName = zCmd + strlen(zCmd);
! tmpnam(zName);
strcat(zName, ".Z");
! if (!(f = fopen(zName, "w"))) {
error(getPos(), "Couldn't open temporary file '%s'", zName);
return;
}
dumpFile(f);
fclose(f);
#ifdef NO_POPEN
--- 506,526 ----
strcpy(zCmd, uncompressCmd);
strcat(zCmd, " ");
zName = zCmd + strlen(zCmd);
! strcpy(zName, "/tmp/xpXXXXXX");
! fdfd = mkstemp(zName);
! zzzz = strdup(zName);
strcat(zName, ".Z");
! if (!(f = fdopen(fdfd, "w"))) {
error(getPos(), "Couldn't open temporary file '%s'", zName);
+ free(zzzz);
return;
}
+ if (rename(zzzz, zName) == -1) {
+ error(getPos(), "Couldn't rename temporary file '%s'", zName);
+ free(zzzz);
+ return;
+ }
+ free(zzzz);
dumpFile(f);
fclose(f);
#ifdef NO_POPEN

View File

@ -0,0 +1 @@
Display tool for PDF files

8
graphics/xpdf/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
Xpdf is a viewer for Portable Document Format (PDF) files. (These are
also sometimes also called 'Acrobat' files, from the name of Adobe's
PDF software.) Xpdf runs under UNIX and the X Window System.
Xpdf is designed to be small and efficient. It does not use the Motif
or Xt libraries. It uses standard X fonts. Xpdf is quite usable on a
486-66 PC running FreeBSD.

6
graphics/xpdf/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
bin/xpdf
bin/pdftops
bin/pdftotext
man/man1/xpdf.1
man/man1/pdftops.1
man/man1/pdftotext.1