1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Update to 3.2.5

PR:		111246
Submitted by:	Eric P. Scott <eps+pbug0704@ana.com>
This commit is contained in:
Martin Wilke 2007-06-10 00:49:25 +00:00
parent a106e86668
commit 3e7df8382c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193136
10 changed files with 65 additions and 118 deletions

View File

@ -6,31 +6,35 @@
#
PORTNAME= transfig
PORTVERSION= 3.2.4
PORTREVISION= 2
PORTVERSION= 3.2.5
CATEGORIES= print
MASTER_SITES= http://www.xfig.org/xfigdist/ \
ftp://www-epb.lbl.gov/xfig/%SUBDIR%/
MASTER_SITE_SUBDIR= . previous_versions
MASTER_SITES= http://xfig.org/software/xfig/${PORTVERSION}/ \
ftp://www-epb.lbl.gov/xfig/
DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools to convert Xfig's .fig files
USE_GHOSTSCRIPT_RUN= yes
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
RUN_DEPENDS= ppmtogif:${PORTSDIR}/graphics/netpbm
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_GHOSTSCRIPT_RUN= yes
USE_IMAKE= yes
USE_XPM= yes
MAN1= fig2dev.1 fig2ps2tex.1 pic2tpic.1 transfig.1
MAKE_ARGS+= INSTALLFLAGS="${COPY}" \
INSTPGMFLAGS="${STRIP} ${_BINOWNGRP} -m ${BINMODE}" \
INSTBINFLAGS="${_BINOWNGRP} -m ${BINMODE}" \
INSTDATFLAGS="${_SHROWNGRP} -m ${SHAREMODE}" \
INSTMANFLAGS="${_MANOWNGRP} -m ${MANMODE}"
pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
.if !defined(WITH_GHOSTSCRIPT_AFPL) && !defined(WITH_GHOSTSCRIPT_GNU)
@${ECHO_MSG} ""
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
@${ECHO_MSG} " AFPL Postscript interpreter instead of GPL one"
@${ECHO_MSG} " Or define WITH_GHOSTSCRIPT_GNU=yes to use GNU one"
@${ECHO_MSG} ""
.endif

View File

@ -1,3 +1,3 @@
MD5 (transfig.3.2.4.tar.gz) = 742de0f7a3cae74d247bbd0c70dd9dd7
SHA256 (transfig.3.2.4.tar.gz) = a4b59323d97866de7b72675c11dc33b95bb479a69cae7d83f98ba972a1d54910
SIZE (transfig.3.2.4.tar.gz) = 326284
MD5 (transfig.3.2.5.tar.gz) = 3b2cffdd25529ae5877e305f29aae6d1
SHA256 (transfig.3.2.5.tar.gz) = ea5a5724c8fa1dcb52531c4d44ec8a59830b2dc2da11e561e15240e8dd16d043
SIZE (transfig.3.2.5.tar.gz) = 394296

View File

@ -1,6 +1,6 @@
--- fig2dev/Imakefile.orig Fri Dec 20 02:33:44 2002
+++ fig2dev/Imakefile Wed Jan 8 08:36:50 2003
@@ -20,13 +20,13 @@
--- fig2dev/Imakefile.orig Thu Oct 27 09:56:02 2005
+++ fig2dev/Imakefile
@@ -34,7 +34,7 @@
XCOMM You should point XFIGLIBDIR to the same directory you did when you compiled
XCOMM and installed xfig.
@ -8,15 +8,8 @@
+XFIGLIBDIR = $(LIBDIR)/xfig
XCOMM ******
XCOMM If your system has the strerror() function (doesn't have sys_errlist) then
XCOMM comment out NEED_STRERROR with an XCOMM comment.
-NEED_STRERROR = -DNEED_STRERROR
+XCOMM NEED_STRERROR = -DNEED_STRERROR
XCOMM The following probably only applies to Windows 9x/NT:
XCOMM If your system can open files in text and binary modes and has the
@@ -39,7 +39,7 @@
XCOMM If your system doesn't have the strerror() function (has sys_errlist) then
@@ -53,7 +53,7 @@
XCOMM inline functions. With the "INLINE" keyword, you should notice that
XCOMM the display will be a bit faster in complex figures
@ -25,23 +18,19 @@
XCOMM ****************
XCOMM Change RGB if necessary, to point to your rgb.txt color database
@@ -60,8 +60,8 @@
XCOMM are in different places
@@ -74,9 +74,9 @@
XCOMM file are in different places
#ifdef USEPNG
-PNGLIBDIR = $(USRLIBDIR)
-PNGINC = -I/usr/include/X11
+PNGLIBDIR = ${LOCALBASE}/lib
ZLIBDIR = $(USRLIBDIR)
-PNGINC = -I/usr/include/X11
+PNGINC = -I${LOCALBASE}/include/libpng
#endif
XCOMM ****************
@@ -73,11 +73,11 @@
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)
XCOMM
-XCOMM #define USEXPM
+#define USEXPM
@@ -92,7 +92,7 @@
#ifdef USEXPM
XPMLIBDIR = $(USRLIBDIR)
@ -50,44 +39,16 @@
#endif
XCOMM ****************
@@ -126,23 +126,23 @@
@@ -141,7 +141,7 @@
#ifdef I18N
I18N_DEFS = -DI18N
-FIG2DEV_LIBDIR = /usr/local/lib/fig2dev
+FIG2DEV_LIBDIR = $(LIBDIR)/fig2dev
I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=\\\"$(FIG2DEV_LIBDIR)\\\"
I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=$(FIG2DEV_LIBDIR) -DFIG2DEV_LIBDIR_STR=\\\"$(FIG2DEV_LIBDIR)\\\"
install::
[ -d $(DESTDIR)$(FIG2DEV_LIBDIR) ] || mkdir $(DESTDIR)$(FIG2DEV_LIBDIR)
- $(INSTALL) -c dev/japanese.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
+ $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) dev/japanese.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
( cd $(DESTDIR)$(FIG2DEV_LIBDIR); \
rm -f ja.ps ja_JP.ps ja_JP.ujis.ps ja_JP.eucJP.ps ja_JP.EUC.ps; \
$(LN) japanese.ps ja.ps; $(LN) japanese.ps ja_JP.ps; \
$(LN) japanese.ps ja_JP.ujis.ps; $(LN) japanese.ps ja_JP.eucJP.ps; \
$(LN) japanese.ps ja_JP.EUC.ps )
- $(INSTALL) -c dev/korean.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
+ $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) dev/korean.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
( cd $(DESTDIR)$(FIG2DEV_LIBDIR); \
rm -f ko.ps ko_KR.ps ko_KR.eucKR.ps ko_KR.EUC.ps; \
$(LN) korean.ps ko.ps; $(LN) korean.ps ko_KR.ps; \
$(LN) korean.ps ko_KR.eucKR.ps; $(LN) korean.ps ko_KR.EUC.ps )
- $(INSTALL) -c dev/cs_CZ.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
+ $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) dev/cs_CZ.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
( cd $(DESTDIR)$(FIG2DEV_LIBDIR); \
rm -f hr_HR.ps hu_HU.ps pl_PL.ps ro_RO.ps sk_SK.ps sl_SI.ps; \
$(LN) cs_CZ.ps hr_HR.ps; $(LN) cs_CZ.ps hu_HU.ps; \
@@ -177,7 +177,7 @@
IMAKE_DEFINES = $(DUSEPNG) $(DUSEXPM)
-DEVDEFINES = $(DUSEPNG) $(DUSEXPM) $(XPMINC) $(DDNFSS) $(DDA4) \
+DEVDEFINES = $(DUSEPNG) $(DUSEXPM) $(PNGINC) $(XPMINC) $(DDNFSS) $(DDA4) \
$(DDLATEX2E_GRAPHICS) $(DDEPSFIG) $(DDIBMGEC) $(DDDVIPS) $(I18N_DEV_DEFS)
#define IHaveSubdirs
@@ -233,7 +233,7 @@
#endif /* I18N */
@@ -229,7 +229,7 @@
else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGLIBDIR)/bitmaps ); fi ; \
echo Copying bitmap files for tk to $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
for f in * ; do \

View File

@ -0,0 +1,10 @@
--- fig2dev/dev/Imakefile.orig Tue Sep 30 08:48:08 2003
+++ fig2dev/dev/Imakefile
@@ -23,6 +23,7 @@
#ifdef USE_PNG
READPNGS=readpng.c
READPNGO=readpng.o
+DEPEND_DEFINES=-I${LOCALBASE}/include/libpng DependDefines
#endif
#ifdef USE_XPM

View File

@ -1,13 +0,0 @@
--- fig2dev/dev/genemf.h.orig Thu Dec 19 07:42:05 2002
+++ fig2dev/dev/genemf.h Tue Jan 7 20:16:08 2003
@@ -30,8 +30,10 @@
#ifndef __USE_MISC
/* Old compatibility names for C types. */
typedef unsigned long int ulong;
+#ifndef __FreeBSD__
typedef unsigned short int ushort;
typedef unsigned int uint;
+#endif
#endif

View File

@ -1,21 +0,0 @@
--- fig2dev/dev/gensvg.c.orig Wed Jul 23 16:39:14 2003
+++ fig2dev/dev/gensvg.c Wed Jul 23 16:39:52 2003
@@ -692,16 +692,14 @@
if (t->angle != 0) {
fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
(int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
- fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\"
- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
+ fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
(t->font % 2 == 0 ? "normal" : "italic"),
(t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
anchor[t->type]);
}
else
- fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\"
- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
+ fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
(int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
family[(int) ceil ((t->font + 1) / 4)],
(t->font % 2 == 0 ? "normal" : "italic"),

View File

@ -0,0 +1,11 @@
--- fig2dev/dev/readgif.c.orig Tue Apr 8 14:42:07 2003
+++ fig2dev/dev/readgif.c
@@ -197,7 +197,7 @@
/* make name for temp output file */
sprintf(pcxname, "%s/%s%06d.pix", TMPDIR, "xfig-pcx", getpid());
/* make command to convert gif to pcx into temp file */
- sprintf(buf, "giftopnm | ppmtopcx > %s 2> /dev/null", pcxname);
+ sprintf(buf, "giftopnm -quiet | ppmtopcx -quiet > %s", pcxname);
if ((giftopcx = popen(buf,"w" )) == 0) {
fprintf(stderr,"Cannot open pipe to giftoppm\n");
return 0;

View File

@ -1,14 +1,6 @@
--- fig2dev/fig2dev.h.orig Thu Dec 19 07:45:28 2002
+++ fig2dev/fig2dev.h Tue Jan 7 20:08:45 2003
@@ -22,7 +22,6 @@
#include <sys/file.h>
#include <signal.h>
#include <string.h>
-#include <varargs.h>
#include <pwd.h>
#include <errno.h>
#include <time.h>
@@ -210,7 +209,7 @@
--- fig2dev/fig2dev.h.orig Tue Jul 15 09:21:12 2003
+++ fig2dev/fig2dev.h
@@ -213,7 +213,7 @@
#endif /* MAXPATHLEN */
#endif /* PATH_MAX */

View File

@ -1,11 +1,11 @@
--- transfig/Imakefile.orig Thu Dec 19 07:44:03 2002
+++ transfig/Imakefile Fri Jan 10 17:28:18 2003
@@ -18,7 +18,7 @@
--- transfig/Imakefile.orig Tue Mar 25 12:52:37 2003
+++ transfig/Imakefile
@@ -32,7 +32,7 @@
XCOMM \\usepackage{} command for LaTeX2e.
XCOMM The default is to use \\documentstyle{} for LaTeX209.
-XCOMM USELATEX2E = -DLATEX2E
+USELATEX2E = -DLATEX2E
XCOMM ******* DON'T CHANGE ANYTHIN BELOW THIS POINT *******
XCOMM ******* DON'T CHANGE ANYTHING BELOW THIS POINT *******

View File

@ -2,6 +2,9 @@ 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.
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
Drivers currently exist for the following graphics langauges:
AutoCad slide, BOX, (E)EPIC macros, LaTeX picture environment,
PIC, PiCTeX, PNG, PostScript, Encapsulated Postscript, GIF,
IBM-GL, JPEG, PCX, MF (METAFONT), TeXtyl, TIFF, TPIC, XBM (X11
Bitmap), XPM (X11 Pixmap), and TK (tcl/tk). Fig2dev can be
configured with a subset of these drivers.