[Midnightbsd-cvs] mports [24900] trunk/print: add transfig

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Feb 2 17:38:22 EST 2019


Revision: 24900
          http://svnweb.midnightbsd.org/mports/?rev=24900
Author:   laffer1
Date:     2019-02-02 17:38:21 -0500 (Sat, 02 Feb 2019)
Log Message:
-----------
add transfig

Modified Paths:
--------------
    trunk/print/Makefile

Added Paths:
-----------
    trunk/print/transfig/
    trunk/print/transfig/Makefile
    trunk/print/transfig/distinfo
    trunk/print/transfig/files/
    trunk/print/transfig/files/patch-fig2dev_Imakefile
    trunk/print/transfig/files/patch-fig2dev_dev_Imakefile
    trunk/print/transfig/files/patch-fig2dev_dev_korean.ps
    trunk/print/transfig/files/patch-fig2dev_fig2dev.h
    trunk/print/transfig/files/patch-transfig_Imakefile
    trunk/print/transfig/pkg-descr
    trunk/print/transfig/pkg-plist

Modified: trunk/print/Makefile
===================================================================
--- trunk/print/Makefile	2019-02-02 22:36:19 UTC (rev 24899)
+++ trunk/print/Makefile	2019-02-02 22:38:21 UTC (rev 24900)
@@ -64,6 +64,7 @@
 SUBDIR += texlive-base
 SUBDIR += texlive-texmf
 SUBDIR += texlive-tlmgr
+SUBDIR += transfig
 SUBDIR += ttf2pt1
 SUBDIR += xfce4-print
 SUBDIR += xpdfopen

Added: trunk/print/transfig/Makefile
===================================================================
--- trunk/print/transfig/Makefile	                        (rev 0)
+++ trunk/print/transfig/Makefile	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,37 @@
+# $MidnightBSD$
+
+PORTNAME=	transfig
+PORTVERSION=	3.2.5e
+PORTREVISION=	4
+CATEGORIES=	print
+MASTER_SITES=	SF/mcj/mcj-source/
+DISTNAME=	${PORTNAME}.${PORTVERSION}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Tools to convert Xfig .fig files
+
+RUN_DEPENDS=	ppmtogif:graphics/netpbm
+LIB_DEPENDS=	libpng.so:graphics/png
+
+USES=		ghostscript:run imake
+CFLAGS+=	-Wno-return-type
+USE_XORG=	xpm
+
+MAKE_ARGS+=	INSTALLFLAGS="${COPY}" \
+		INSTPGMFLAGS="${STRIP}" \
+		INSTBINFLAGS="-m ${BINMODE}" \
+		INSTDATFLAGS="-m ${SHAREMODE}" \
+		INSTMANFLAGS="-m ${MANMODE}"
+
+post-install:
+	for i in hr_HR hu_HU pl_PL ro_RO; do \
+		${LN} -sf cs_CZ.ps ${STAGEDIR}${PREFIX}/lib/X11/fig2dev/$${i}.ps; \
+	done
+	for i in ja ja_JP.EUC ja_JP.eucJP ja_JP ja_JP.ujis ; do \
+		${LN} -sf japanese.ps ${STAGEDIR}${PREFIX}/lib/X11/fig2dev/$${i}.ps; \
+	done
+	for i in ko ko_KR.EUC ko_KR.eucKR ko_KR ko_KR.ujis; do \
+		${LN} -sf korean.ps ${STAGEDIR}${PREFIX}/lib/X11/fig2dev/$${i}.ps; \
+	done
+
+.include <bsd.port.mk>


Property changes on: trunk/print/transfig/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/distinfo
===================================================================
--- trunk/print/transfig/distinfo	                        (rev 0)
+++ trunk/print/transfig/distinfo	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,2 @@
+SHA256 (transfig.3.2.5e.tar.gz) = 8ec5a8f13254dd155622ed3ee0fda1382b1e2b5882d83b9aca1871f12a3e7744
+SIZE (transfig.3.2.5e.tar.gz) = 531256


Property changes on: trunk/print/transfig/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/files/patch-fig2dev_Imakefile
===================================================================
--- trunk/print/transfig/files/patch-fig2dev_Imakefile	                        (rev 0)
+++ trunk/print/transfig/files/patch-fig2dev_Imakefile	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,71 @@
+--- 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.
+ 
+-XFIGLIBDIR =	/usr/local/lib/X11/xfig
++XFIGLIBDIR =	$(LIBDIR)/xfig
+ 
+ XCOMM ******
+ 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
+ 
+-XCOMM USEINLINE = -DUSE_INLINE
++USEINLINE = -DUSE_INLINE
+ 
+ XCOMM ****************
+ XCOMM Change RGB if necessary, to point to your rgb.txt color database
+@@ -74,9 +74,9 @@
+ XCOMM file are in different places
+ 
+ #ifdef USEPNG
+-PNGLIBDIR = $(USRLIBDIR)
++PNGLIBDIR = ${LOCALBASE}/lib
+ ZLIBDIR = $(USRLIBDIR)
+-PNGINC = -I/usr/include/X11
++PNGINC = -I${LOCALBASE}/include
+ #endif
+ 
+ XCOMM ****************
+@@ -92,7 +92,7 @@
+ 
+ #ifdef USEXPM
+ XPMLIBDIR = $(USRLIBDIR)
+-XPMINC = -I/usr/include/X11
++XPMINC = -I$(INCDIR)/X11
+ #endif
+ 
+ XCOMM ****************
+@@ -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) -DFIG2DEV_LIBDIR_STR=\\\"$(FIG2DEV_LIBDIR)\\\"
+ 
+ #endif /* I18N */
+@@ -188,11 +188,7 @@
+ INCLUDES = -I..
+ 
+ LOCAL_LIBRARIES = $(LIBTRANSFIG)
+-#if defined(NetBSDArchitecture) || defined(FreeBSDArchitecture)
+-SYS_LIBRARIES = $(PNGLIBS) $(XPMLIBS) -lm -lcompat
+-#else
+ SYS_LIBRARIES = $(PNGLIBS) $(XPMLIBS) -lm
+-#endif
+ DEPLIBS = $(LIBTRANSFIG)
+ 
+ #if !(defined(SunOSPlatform) && (OSMajorVersion>=5))
+@@ -229,7 +225,7 @@
+ 	else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGLIBDIR)/bitmaps ); fi ; \
+ 	echo Copying bitmap files for tk to $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
+ 	for f in * ; do \
+-	      $(INSTALL) -c $$f $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
++	      $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) $$f $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
+ 	done) ; 
+ 
+ install.all::


Property changes on: trunk/print/transfig/files/patch-fig2dev_Imakefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/files/patch-fig2dev_dev_Imakefile
===================================================================
--- trunk/print/transfig/files/patch-fig2dev_dev_Imakefile	                        (rev 0)
+++ trunk/print/transfig/files/patch-fig2dev_dev_Imakefile	2019-02-02 22:38:21 UTC (rev 24900)
@@ -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 DependDefines
+ #endif
+ 
+ #ifdef USE_XPM


Property changes on: trunk/print/transfig/files/patch-fig2dev_dev_Imakefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/files/patch-fig2dev_dev_korean.ps
===================================================================
--- trunk/print/transfig/files/patch-fig2dev_dev_korean.ps	                        (rev 0)
+++ trunk/print/transfig/files/patch-fig2dev_dev_korean.ps	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,49 @@
+--- fig2dev/dev/korean.ps.orig	Sat Jul 15 02:23:17 2000
++++ fig2dev/dev/korean.ps	Sat Jul 15 02:27:58 2000
+@@ -9,14 +9,18 @@
+ % available, it try to use HLaTeX-Myoungjo-Regular-KSC-EUC-H
+ % and HLaTeX-Gothic-Regular-KSC-EUC-H instead.
+ % --- T.Sato, 1999/8/13
++%
++% Search Batang/Dotum-KSC-EUC-H instead Munhwa family.
++% --- CHOI Junho <cjh at FreeBSD.org> 2000/7/15
++%
+ 
+-/has_munhwa_font true def
+-FontDirectory /Munhwa-Regular-KSC-EUC-H known not {
++/has_baekmuk_font true def
++FontDirectory /Batang-Medium-KSC-EUC-H known not {
+   systemdict /resourcestatus known {
+-    /Munhwa-Regular-KSC-EUC-H /Font resourcestatus {
++    /Batang-Medium-KSC-EUC-H /Font resourcestatus {
+       pop pop
+     } {
+-      /has_munhwa_font false def
++      /has_baekmuk_font false def
+     } ifelse
+   } if
+ } if
+@@ -25,9 +29,9 @@
+   /FontName /CompositeRoman def  /FontType 0 def
+   /WMode 0 def    /FMapType 3 def  /FontMatrix matrix def
+   /Encoding [0 1] def
+-  has_munhwa_font {
++  has_baekmuk_font {
+     /FDepVector [ /Times-Roman findfont
+-        /Munhwa-Regular-KSC-EUC-H findfont ] def
++        /Batang-Medium-KSC-EUC-H findfont ] def
+   } {
+     /FDepVector [ /Times-Roman findfont
+         /HLaTeX-Myoungjo-Regular-KSC-EUC-H findfont ] def
+@@ -40,9 +44,9 @@
+   /FontName /CompositeBold def  /FontType 0 def
+   /WMode 0 def    /FMapType 3 def  /FontMatrix matrix def
+   /Encoding [0 1] def
+-  has_munhwa_font {
++  has_baekmuk_font {
+     /FDepVector [ /Times-Bold findfont
+-        /MunhwaGothic-Bold-KSC-EUC-H findfont ] def
++        /Dotum-Medium-KSC-EUC-H findfont ] def
+   } {
+     /FDepVector [ /Times-Bold findfont
+         /HLaTeX-Gothic-Regular-KSC-EUC-H findfont ] def


Property changes on: trunk/print/transfig/files/patch-fig2dev_dev_korean.ps
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/files/patch-fig2dev_fig2dev.h
===================================================================
--- trunk/print/transfig/files/patch-fig2dev_fig2dev.h	                        (rev 0)
+++ trunk/print/transfig/files/patch-fig2dev_fig2dev.h	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,11 @@
+--- fig2dev/fig2dev.h.orig	2010-03-16 11:53:20.000000000 -0700
++++ fig2dev/fig2dev.h	2011-06-16 22:23:27.000000000 -0700
+@@ -214,7 +214,7 @@
+ #endif /* MAXPATHLEN */
+ #endif /* PATH_MAX */
+ 
+-#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD) )
++#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD__) )
+ extern int		sys_nerr, errno;
+ #endif
+ 


Property changes on: trunk/print/transfig/files/patch-fig2dev_fig2dev.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/files/patch-transfig_Imakefile
===================================================================
--- trunk/print/transfig/files/patch-transfig_Imakefile	                        (rev 0)
+++ trunk/print/transfig/files/patch-transfig_Imakefile	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,11 @@
+--- 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 ANYTHING BELOW THIS POINT *******
+ 


Property changes on: trunk/print/transfig/files/patch-transfig_Imakefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/pkg-descr
===================================================================
--- trunk/print/transfig/pkg-descr	                        (rev 0)
+++ trunk/print/transfig/pkg-descr	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,10 @@
+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 languages:
+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.


Property changes on: trunk/print/transfig/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/print/transfig/pkg-plist
===================================================================
--- trunk/print/transfig/pkg-plist	                        (rev 0)
+++ trunk/print/transfig/pkg-plist	2019-02-02 22:38:21 UTC (rev 24900)
@@ -0,0 +1,77 @@
+bin/fig2dev
+bin/fig2ps2tex
+bin/fig2ps2tex.sh
+bin/pic2tpic
+bin/transfig
+lib/X11/fig2dev/cs_CZ.ps
+lib/X11/fig2dev/hr_HR.ps
+lib/X11/fig2dev/hu_HU.ps
+lib/X11/fig2dev/pl_PL.ps
+lib/X11/fig2dev/ro_RO.ps
+lib/X11/fig2dev/sk_SK.ps
+lib/X11/fig2dev/sl_SI.ps
+lib/X11/fig2dev/japanese.ps
+lib/X11/fig2dev/ja.ps
+lib/X11/fig2dev/ja_JP.EUC.ps
+lib/X11/fig2dev/ja_JP.eucJP.ps
+lib/X11/fig2dev/ja_JP.ps
+lib/X11/fig2dev/ja_JP.ujis.ps
+lib/X11/fig2dev/korean.ps
+lib/X11/fig2dev/ko.ps
+lib/X11/fig2dev/ko_KR.EUC.ps
+lib/X11/fig2dev/ko_KR.eucKR.ps
+lib/X11/fig2dev/ko_KR.ps
+lib/X11/fig2dev/ko_KR.ujis.ps
+lib/X11/xfig/bitmaps/bricks.bmp
+lib/X11/xfig/bitmaps/circles.bmp
+lib/X11/xfig/bitmaps/crosshatch.bmp
+lib/X11/xfig/bitmaps/crosshatch30.bmp
+lib/X11/xfig/bitmaps/crosshatch45.bmp
+lib/X11/xfig/bitmaps/dash.bmp
+lib/X11/xfig/bitmaps/dashDot.bmp
+lib/X11/xfig/bitmaps/dashDotDot.bmp
+lib/X11/xfig/bitmaps/dashDotDotDot.bmp
+lib/X11/xfig/bitmaps/dot.bmp
+lib/X11/xfig/bitmaps/fishscales.bmp
+lib/X11/xfig/bitmaps/hexagons.bmp
+lib/X11/xfig/bitmaps/horiz_saw.bmp
+lib/X11/xfig/bitmaps/horizontal.bmp
+lib/X11/xfig/bitmaps/left30.bmp
+lib/X11/xfig/bitmaps/left45.bmp
+lib/X11/xfig/bitmaps/leftshingle.bmp
+lib/X11/xfig/bitmaps/octagons.bmp
+lib/X11/xfig/bitmaps/p13.bmp
+lib/X11/xfig/bitmaps/right30.bmp
+lib/X11/xfig/bitmaps/right45.bmp
+lib/X11/xfig/bitmaps/rightshingle.bmp
+lib/X11/xfig/bitmaps/small_fishscales.bmp
+lib/X11/xfig/bitmaps/sp0.bmp
+lib/X11/xfig/bitmaps/sp1.bmp
+lib/X11/xfig/bitmaps/sp10.bmp
+lib/X11/xfig/bitmaps/sp11.bmp
+lib/X11/xfig/bitmaps/sp12.bmp
+lib/X11/xfig/bitmaps/sp13.bmp
+lib/X11/xfig/bitmaps/sp14.bmp
+lib/X11/xfig/bitmaps/sp15.bmp
+lib/X11/xfig/bitmaps/sp16.bmp
+lib/X11/xfig/bitmaps/sp17.bmp
+lib/X11/xfig/bitmaps/sp18.bmp
+lib/X11/xfig/bitmaps/sp19.bmp
+lib/X11/xfig/bitmaps/sp2.bmp
+lib/X11/xfig/bitmaps/sp20.bmp
+lib/X11/xfig/bitmaps/sp3.bmp
+lib/X11/xfig/bitmaps/sp4.bmp
+lib/X11/xfig/bitmaps/sp5.bmp
+lib/X11/xfig/bitmaps/sp6.bmp
+lib/X11/xfig/bitmaps/sp7.bmp
+lib/X11/xfig/bitmaps/sp8.bmp
+lib/X11/xfig/bitmaps/sp9.bmp
+lib/X11/xfig/bitmaps/vert_bricks.bmp
+lib/X11/xfig/bitmaps/vert_leftshingle.bmp
+lib/X11/xfig/bitmaps/vert_rightshingle.bmp
+lib/X11/xfig/bitmaps/vert_saw.bmp
+lib/X11/xfig/bitmaps/vertical.bmp
+man/man1/fig2dev.1.gz
+man/man1/fig2ps2tex.1.gz
+man/man1/pic2tpic.1.gz
+man/man1/transfig.1.gz


Property changes on: trunk/print/transfig/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list