Add xfig 3.2 port.

This commit is contained in:
angelos 1997-12-03 04:17:13 +00:00
parent c3728c150a
commit 24a629eeaf
7 changed files with 140 additions and 0 deletions

27
graphics/xfig/Makefile Normal file
View File

@ -0,0 +1,27 @@
# OpenBSD makefile for: xfig
# Version required: 3.2
# Date created: December 2, 1997
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 04:17:13 angelos Exp $
#
DISTNAME= xfig.3.2
PKGNAME= xfig-3.2
CATEGORIES= graphics x11
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications/drawing_tools/xfig
MAINTAINER= angelos@openbsd.org
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm \
jpeg\\.7\\.:${PORTSDIR}/graphics/jpeg \
Xaw3d\\.6\\.:${PORTSDIR}/x11/Xaw3d
RUN_DEPENDS= fig2dev:${PORTSDIR}/print/transfig
USE_IMAKE= yes
MAKE_FLAGS= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 \
XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults \
XFIGLIBDIR=${PREFIX}/lib/X11/xfig -f
.include <bsd.port.mk>

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

@ -0,0 +1 @@
MD5 (xfig.3.2.tar.gz) = d16c4662b96e3f9d0735b7612c7d016b

View File

@ -0,0 +1,60 @@
--- Imakefile.orig Fri Aug 22 16:59:16 1997
+++ Imakefile Tue Aug 26 13:14:52 1997
@@ -46,12 +46,12 @@
XCOMM set JPEGLIBDIR after the #else to the directory where you have the source
XCOMM for jpeg.
-XCOMM #define USEINSTALLEDJPEG
+#define USEINSTALLEDJPEG
XCOMM Uncomment the following definition for XAWLIB if you want to use
XCOMM the 3d Athena Widget Set (highly recommended!)
-XCOMM XAWLIB = -lXaw3d
+XAWLIB = -lXaw3d
XCOMM Uncomment the following if needed for DECstations running older X11R4
XCOMM INCROOT=/usr/include/mit
@@ -66,12 +66,12 @@
XCOMM Change XPMLIB if necessary to point to the xpm library (libXpm)
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)
-XCOMM #define USEXPM
-XCOMM #define USEXPM_ICON
+#define USEXPM
+#define USEXPM_ICON
#ifdef USEXPM
XPMLIBDIR = $(USRLIBDIR)
-XPMINC = -I$(INCDIR)
+XPMINC = -I$(INCDIR)/X11 -I$(INCDIR)
XPMLIB = -L$(XPMLIBDIR) -lXpm
#endif
@@ -79,7 +79,7 @@
#ifdef USEINSTALLEDJPEG
JPEGLIBDIR = /usr/local/lib
-JPEGINCDIR = -I/usr/include/X11
+JPEGINCDIR = -I/usr/local/include
JPEGLIB = -L$(JPEGLIBDIR) -ljpeg
#else
JPEGLIBDIR = ../jpeg
@@ -112,7 +112,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 use (and change) the following if you want the multi-key data base file
XCOMM somewhere other than the standard X11 library directory
@@ -213,7 +213,7 @@
#endif
#endif
-DEFINES = $(STRDEFINES) -DGSBIT $(USEINLINE) $(DUSEXPM) \
+DEFINES = $(STRDEFINES) $(USEINLINE) $(DUSEXPM) \
$(DUSEXPMICON) $(DUSEGIF) $(DUSEJPEG) $(I18N_DEFS)
XFIGSRC = d_arc.c d_arcbox.c d_box.c d_ellipse.c d_picobj.c \

View File

@ -0,0 +1,34 @@
*** fig.h.orig Tue Jun 24 17:34:38 1997
--- fig.h Tue Dec 2 22:57:30 1997
***************
*** 28,33 ****
--- 28,35 ----
#if defined(ultrix) || defined(__bsdi__) || defined(Mips)
#include <sys/types.h> /* for stat structure */
#endif
+
+ #include <sys/param.h>
#include <sys/stat.h>
#if defined(__convex__) && defined(__STDC__)
***************
*** 50,57 ****
#if !defined(__bsdi__) && !defined(__NetBSD__)
extern int errno;
extern int sys_nerr;
! #if (! (defined(BSD) && (BSD >= 199306)))
! extern char *sys_errlist[];
#endif
#endif
--- 52,61 ----
#if !defined(__bsdi__) && !defined(__NetBSD__)
extern int errno;
extern int sys_nerr;
! #if !defined(__OpenBSD__)
! #if !defined(BSD) || (BSD >= 199306)
! extern __const char *__const sys_errlist[];
! #endif
#endif
#endif

View File

@ -0,0 +1 @@
A drawing program for X11

12
graphics/xfig/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
XFIG 3.1.4 - Facility for Interactive Generation of figures under X11
Xfig is a menu-driven tool that allows the user to draw and manipulate objects
interactively in an X window. The resulting pictures can be saved, printed
on postscript printers or converted to a variety of other formats (e.g. to
allow inclusion in LaTeX documents).
To enjoy the beautiful colors, specify "*customization: -color" in your
.Xdefaults or .Xresources file.
To obtain full capability, we recommend you to install the transfig
package too.

5
graphics/xfig/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
bin/xfig
lib/X11/xfig/CompKeyDB
lib/X11/app-defaults/Fig
lib/X11/app-defaults/Fig-color
man/man1/xfig.0