Add xfig 3.2 port.
This commit is contained in:
parent
c3728c150a
commit
24a629eeaf
27
graphics/xfig/Makefile
Normal file
27
graphics/xfig/Makefile
Normal 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
1
graphics/xfig/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xfig.3.2.tar.gz) = d16c4662b96e3f9d0735b7612c7d016b
|
60
graphics/xfig/patches/patch-aa
Normal file
60
graphics/xfig/patches/patch-aa
Normal 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 \
|
34
graphics/xfig/patches/patch-ab
Normal file
34
graphics/xfig/patches/patch-ab
Normal 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
|
||||
|
1
graphics/xfig/pkg/COMMENT
Normal file
1
graphics/xfig/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
A drawing program for X11
|
12
graphics/xfig/pkg/DESCR
Normal file
12
graphics/xfig/pkg/DESCR
Normal 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
5
graphics/xfig/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user