Add transfig 3.2 port.

This commit is contained in:
angelos 1997-12-03 04:15:28 +00:00
parent 4d63bcf98f
commit c3728c150a
9 changed files with 128 additions and 0 deletions

24
print/transfig/Makefile Normal file
View File

@ -0,0 +1,24 @@
# OpenBSD makefile for: transfig
# Version required: 3.2
# Date created: December 2, 1997
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 04:15:28 angelos Exp $
#
DISTNAME= transfig.3.2
PKGNAME= transfig-3.2
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications/drawing_tools/transfig
MAINTAINER= angelos@openbsd.org
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm \
jpeg\\.7\\.:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript5
USE_IMAKE= yes
.include <bsd.port.mk>

1
print/transfig/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (transfig.3.2.tar.gz) = d5ded82f303c75a92bbf4bec568e7853

View File

@ -0,0 +1,20 @@
--- fig2dev/read1_3.c.orig Mon Mar 3 14:38:36 1997
+++ fig2dev/read1_3.c Mon Aug 25 21:44:46 1997
@@ -29,6 +29,7 @@
/*******************************************************************/
#include <stdio.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
#include <errno.h>
#include "alloc.h"
@@ -52,7 +53,9 @@
extern F_arrow *forward_arrow(), *backward_arrow();
extern int figure_modified;
#ifndef __NetBSD__
+#if !defined(BSD) || (BSD < 199306)
extern char *sys_errlist[];
+#endif
extern int sys_nerr, errno;
#endif

View File

@ -0,0 +1,11 @@
--- fig2dev/dev/genps.c.orig Fri Aug 22 14:33:56 1997
+++ fig2dev/dev/genps.c Mon Aug 25 21:40:30 1997
@@ -48,7 +48,7 @@
#include <pwd.h>
#include <errno.h>
#ifndef __NetBSD__
-#if (! (defined(BSD) && (BSD >= 199306)))
+#if !defined(BSD) || (BSD < 199306)
extern char *sys_errlist[];
#endif
#endif

View File

@ -0,0 +1,44 @@
--- fig2dev/Imakefile.orig Mon Aug 25 20:51:04 1997
+++ fig2dev/Imakefile Mon Aug 25 20:54:14 1997
@@ -37,7 +37,7 @@
XCOMM inline functions. With the "INLINE" keyword, you should notice that
XCOMM the display will be a bit faster in complex figures
-XCOMM USEINLINE = -DUSE_INLINE
+USEINLINE = -DUSE_INLINE
XCOMM Uncomment the XPM variables here if you have the XPM (color pixmap)
XCOMM package and you would like to allow XPM files.
@@ -100,8 +100,8 @@
XCOMM Hint: Users of LaTeX2e will probably want to include both of these
XCOMM options; users of LaTeX 2.09 will probably want to include neither.
-XCOMM DDNFSS = -DNFSS
-XCOMM DDEPSF = -DEPSF
+DDNFSS = -DNFSS
+DDEPSF = -DEPSF
XCOMM For Linux machines or any machines that have a separate library for
XCOMM the database management routines, uncomment the following line
@@ -138,7 +138,7 @@
#ifdef USEINSTALLEDJPEG
JPEGLIBDIR = /usr/local/lib
-JPEGINCDIR = /usr/include/X11
+JPEGINCDIR = /usr/local/include
JPEGLIB = -L$(JPEGLIBDIR) -ljpeg
#else
JPEGLIBDIR = ../../jpeg
@@ -175,10 +175,10 @@
INCLUDES = -I.. -I$(JPEGINCDIR)
LOCAL_LIBRARIES = $(LIBTRANSFIG) $(JPEGLIB)
-#if defined(NetBSDArchitecture)
+#if defined(NetBSDArchitecture)
SYS_LIBRARIES = $(XPMLIB) $(DBMLIB) -lm -lcompat
#else
-SYS_LIBRARIES = $(XPMLIB) $(DBMLIB) -lm
+SYS_LIBRARIES = $(XPMLIB) $(DBMLIB) -lm -lcompat
#endif
DEPLIBS = $(LIBTRANSFIG)

View File

@ -0,0 +1,11 @@
--- fig2dev/read.c.orig Fri Jun 20 14:55:50 1997
+++ fig2dev/read.c Mon Aug 25 21:42:00 1997
@@ -56,7 +56,7 @@
strerror(e)
int e;
{
-#if (! (defined(BSD) && (BSD >= 199306)) && !defined(__NetBSD__))
+#if !defined(BSD) || (BSD < 199306)
extern char *sys_errlist[];
#endif
return sys_errlist[e];

View File

@ -0,0 +1 @@
Tools to convert Xfig's .fig files.

7
print/transfig/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
TransFig is a set of tools for creating TeX documents with graphics
which are portable, in the sense that they can be printed in a wide
variety of environments. This is version 3.1.2.
Drivers currently exist for the following graphics langauges: (E)EPIC
macros, LaTeX picture environment, PIC, PiCTeX, PostScript, and
TeXtyl. Fig2dev can be configured with a subset of these drivers

9
print/transfig/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
bin/transfig
bin/fig2dev
bin/fig2ps2tex
bin/fig2ps2tex.sh
bin/pic2tpic
man/man1/transfig.1
man/man1/fig2ps2tex.1
man/man1/pic2tpic.1
man/man1/fig2dev.1