diff --git a/textproc/Makefile b/textproc/Makefile index 4495b12699e9..a3c61506bd0f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -324,6 +324,7 @@ SUBDIR += txt2man SUBDIR += ua-ispell SUBDIR += unroff + SUBDIR += unrtf SUBDIR += urlview SUBDIR += wdiff SUBDIR += word2x diff --git a/textproc/unrtf/Makefile b/textproc/unrtf/Makefile new file mode 100644 index 000000000000..f157d56a39d2 --- /dev/null +++ b/textproc/unrtf/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: unrtf +# Date created: 26 March 2002 +# Whom: Oliver Braun +# +# $FreeBSD$ + +PORTNAME= unrtf +PORTVERSION= 0.18.1 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= obraun@informatik.unibw-muenchen.de + +WRKSRC= ${WRKDIR}/unrtf + +ALL_TARGET= unrtf + +MAN1= unrtf.1 + +post-install: + ${INSTALL_MAN} ${WRKSRC}/unrtf.1 ${PREFIX}/man/man1/${MAN1} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/unrtf.html ${DOCSDIR} +.endif + +.include diff --git a/textproc/unrtf/distinfo b/textproc/unrtf/distinfo new file mode 100644 index 000000000000..b05b699a332c --- /dev/null +++ b/textproc/unrtf/distinfo @@ -0,0 +1 @@ +MD5 (unrtf-0.18.1.tar.gz) = c7eb7eb30880c4fb8d089b8a486d255d diff --git a/textproc/unrtf/files/patch-Makefile b/textproc/unrtf/files/patch-Makefile new file mode 100644 index 000000000000..a9d6979c0c5b --- /dev/null +++ b/textproc/unrtf/files/patch-Makefile @@ -0,0 +1,19 @@ +--- Makefile.orig Tue Mar 26 19:11:52 2002 ++++ Makefile Tue Mar 26 19:46:29 2002 +@@ -25,7 +25,7 @@ + # + + +-CFLAGS=-g -Wall ++#CFLAGS=-g -Wall + CC=gcc + + OBJS=convert.o word.o error.o main.o hash.o \ +@@ -57,6 +57,6 @@ + rm -f ${OBJS} + + install: ${TARGET} +- cp ${TARGET} /usr/local/bin ++ ${INSTALL} ${TARGET} ${PREFIX}/bin + + diff --git a/textproc/unrtf/files/patch-malloc.c b/textproc/unrtf/files/patch-malloc.c new file mode 100644 index 000000000000..b56903d05d13 --- /dev/null +++ b/textproc/unrtf/files/patch-malloc.c @@ -0,0 +1,14 @@ +--- malloc.c.orig Tue Mar 26 21:50:37 2002 ++++ malloc.c Tue Mar 26 21:52:14 2002 +@@ -39,11 +39,7 @@ + #include + #include + +-#if AMIGA + #include +-#else +-#include +-#endif + + #include "error.h" + diff --git a/textproc/unrtf/pkg-comment b/textproc/unrtf/pkg-comment new file mode 100644 index 000000000000..bf4b5ded061a --- /dev/null +++ b/textproc/unrtf/pkg-comment @@ -0,0 +1 @@ +A converter from RTF to several formats, including HTML and LaTeX diff --git a/textproc/unrtf/pkg-descr b/textproc/unrtf/pkg-descr new file mode 100644 index 000000000000..b77fdd05a817 --- /dev/null +++ b/textproc/unrtf/pkg-descr @@ -0,0 +1,9 @@ +UnRTF is a command-line converter from RTF (Rich Text) to HTML, LaTeX, +PostScript, plain text, and text with VT100 codes. When converting to HTML, it +supports tables, fonts, embedded images, hyperlinks, paragraph alignment, and +more. All other conversions are "alpha" i.e. being newly developed. + +WWW: http://www.geocities.com/tuorfa/unrtf.html + +-- Oliver Braun +obraun@informatik.unibw-muenchen.de diff --git a/textproc/unrtf/pkg-plist b/textproc/unrtf/pkg-plist new file mode 100644 index 000000000000..79f02a0eb964 --- /dev/null +++ b/textproc/unrtf/pkg-plist @@ -0,0 +1,3 @@ +bin/unrtf +%%PORTDOCS%%share/doc/unrtf/unrtf.html +%%PORTDOCS%%@dirrm share/doc/unrtf