diff options
author | tron <tron> | 1998-12-30 17:49:03 +0000 |
---|---|---|
committer | tron <tron> | 1998-12-30 17:49:03 +0000 |
commit | c956e924ef4346412e58965eeca06c3af8d2738d (patch) | |
tree | 7293152260164d8ffd045b5c5e2f6287b0e4a61b | |
parent | 5933dc4533b16d0b4de6767620c471b231ab48ef (diff) | |
download | pkgsrc-c956e924ef4346412e58965eeca06c3af8d2738d.tar.gz |
Initial import of FreeBSD's "rtf2latex" port:
rtf2LaTeX is a filter built on Paul DuBois' RTF reader that converts
RTF (Microsoft's Rich Text Format) into LaTeX.
-rw-r--r-- | print/rtf2latex/Makefile | 22 | ||||
-rw-r--r-- | print/rtf2latex/files/Makefile | 76 | ||||
-rw-r--r-- | print/rtf2latex/files/md5 | 1 | ||||
-rw-r--r-- | print/rtf2latex/pkg/COMMENT | 1 | ||||
-rw-r--r-- | print/rtf2latex/pkg/DESCR | 4 | ||||
-rw-r--r-- | print/rtf2latex/pkg/PLIST | 6 |
6 files changed, 110 insertions, 0 deletions
diff --git a/print/rtf2latex/Makefile b/print/rtf2latex/Makefile new file mode 100644 index 00000000000..c2141f121b5 --- /dev/null +++ b/print/rtf2latex/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: rtf2LaTeX +# Version required: 1.5 +# Date created: 25 Jan 1995 +# Whom: Thomas Gellekum <tg@FreeBSD.org> +# +# FreeBSD Id: Makefile,v 1.7 1998/08/31 07:51:40 tg Exp +# + +DISTNAME= rtf2LaTeX.1.5 +PKGNAME= rtf2latex-1.5 +CATEGORIES= print +MASTER_SITES= ftp://ftp.dante.de/pub/tex/support/rtf2latex/ + +MAINTAINER= ports@FreeBSD.ORG + +WRKSRC= ${WRKDIR}/rtf2LaTeX +MAN1= rtf2LaTeX.1 + +post-extract: + ${CP} ${FILESDIR}/Makefile ${WRKSRC} + +.include <bsd.port.mk> diff --git a/print/rtf2latex/files/Makefile b/print/rtf2latex/files/Makefile new file mode 100644 index 00000000000..f1985ea98d9 --- /dev/null +++ b/print/rtf2latex/files/Makefile @@ -0,0 +1,76 @@ +SHELL=/bin/sh +INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM} +INSTALL_MAN=${BSD_INSTALL_MAN} +INSTALL_DATA=${BSD_INSTALL_DATA} +LD=cc -s +PREFIX?=/usr/local +# if your compiler needs -o option for creating .o files uncomment this line: +#OOPT = -o $@ +# +# XCFLAGS holds a combination of -DNO_MALLOC_H -DSTDARG -DVARARGS -DSYSV. +# -DSTDARG and -DVARARGS are mutually exclusive. -DNO_MALLOC_H is only +# needed if you don't have a standard C compiler AND you don't have malloc.h +# if you have a standard C compiler, it is automatically asumed you have stdarg +# you can override this by specifying -DVARARGS. If you don't specify +# any of -DSTDARG and -DVARARGS, an uggly replacement that works on most +# K&R compilers will be used. +# -DSYSV is currently used only for defining index to strchr. You may +# want to specify this for ULTRIX - ULTRIX has both, strchr and index but +# lacks prototypes for the latter. +# +# uncomment this line and delete unneccesary flags if needed. +#XCFLAGS=-DNO_MALLOC_H -DSTDARG -DVARARGS -DSYSV +#XCFLAGS = -DSYSV + +# This is where executables, man-pages and support files are installed +BINDIR = ${PREFIX}/bin +MANDIR = ${PREFIX}/man/man1 +RTFDIR = ${PREFIX}/share/rtf + +############### No configuration parameters below this line ############### + +# RTF-to-LaTeX translator +COMMONOBJS = reader.o +LATEXOBJS = rtf2LaTeX.o $(COMMONOBJS) +SOURCES = rtf.h Makefile.2LaTeX fonts.h rtf2LaTeX.c r2L_version.h \ + rtf2LaTeX.h reader.c +SUPPORT = mac.code ansi.code english.land german.land +DOCFILS = Copyright interna.tex README.2LaTeX interna.rtf rtf2LaTeX.man \ + INSTALL.2LaTeX +MACFILES = getopt.c macintosh.h macintosh.c readme.mac + +all: rtf2LaTeX + +rtf2LaTeX: $(LATEXOBJS) + $(LD) $(LDFLAGS) -o $@ $(LATEXOBJS) +install: rtf2LaTeX $(DOCFILS) $(SUPPORT) + $(INSTALL_PROGRAM) rtf2LaTeX $(BINDIR) + $(INSTALL_MAN) rtf2LaTeX.man $(MANDIR)/rtf2LaTeX.1 + -mkdir $(RTFDIR) + $(INSTALL_DATA) ansi.code mac.code german.land english.land $(RTFDIR) +tags: + etags -et *.[ch] +clean:: + -rm -f rtf2LaTeX *~ core *.o *.aux *.log *.dvi TAGS \ + rtf2LaTeX.tar.z rtf2LaTeX.tar.gz +test: + ./rtf2LaTeX interna.rtf > interna.test + diff interna.test interna.tex + rm interna.test +# +reader.o : rtf.h + $(CC) $(CFLAGS) $(XCFLAGS) -c $(OOPT) reader.c + +rtf2LaTeX.o : fonts.h r2L_version.h rtf2LaTeX.h rtf.h + $(CC) $(CFLAGS) $(XCFLAGS) -c -DRTFDIR=\"$(RTFDIR)\" $(OOPT) rtf2LaTeX.c + +sources: $(SOURCES) $(DOCFILS) $(SUPPORT) $(MACFILES) + +$(SOURCES) $(DOCFILS) $(SUPPORT) $(MACFILES): + co $@ + +dist: sources + mkdir rtf2LaTeX + ln $(SOURCES) $(DOCFILS) $(SUPPORT) $(MACFILES) rtf2LaTeX + tar cf - rtf2LaTeX | gzip -best > rtf2LaTeX.tar.gz + rm -rf rtf2LaTeX diff --git a/print/rtf2latex/files/md5 b/print/rtf2latex/files/md5 new file mode 100644 index 00000000000..2b4304cc7e2 --- /dev/null +++ b/print/rtf2latex/files/md5 @@ -0,0 +1 @@ +MD5 (rtf2LaTeX.1.5.tar.gz) = 90964f786d149d314a57511ed9ceaaee diff --git a/print/rtf2latex/pkg/COMMENT b/print/rtf2latex/pkg/COMMENT new file mode 100644 index 00000000000..7ff5b0e8087 --- /dev/null +++ b/print/rtf2latex/pkg/COMMENT @@ -0,0 +1 @@ +A filter that converts RTF (MS's Rich Text Format) into LaTeX. diff --git a/print/rtf2latex/pkg/DESCR b/print/rtf2latex/pkg/DESCR new file mode 100644 index 00000000000..3b4163f5495 --- /dev/null +++ b/print/rtf2latex/pkg/DESCR @@ -0,0 +1,4 @@ +rtf2LaTeX is a filter built on Paul DuBois' RTF reader that converts +RTF (Microsoft's Rich Text Format) into LaTeX. +rtf2LaTeX expends a good deal of effort in an attempt to make the resulting +LaTeX maintainable and modifiable. diff --git a/print/rtf2latex/pkg/PLIST b/print/rtf2latex/pkg/PLIST new file mode 100644 index 00000000000..26894bebf5f --- /dev/null +++ b/print/rtf2latex/pkg/PLIST @@ -0,0 +1,6 @@ +bin/rtf2LaTeX +share/rtf/ansi.code +share/rtf/english.land +share/rtf/german.land +share/rtf/mac.code +@dirrm share/rtf |