summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-08-06 12:15:55 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-08-06 12:15:55 +0000
commite555a1dbc30175363cba328548faa62c82a6db91 (patch)
tree10606470d8b21e1b71cbc5445ed4cd505642f8d8 /textproc
parentAdd missing entries to pkg-plist. (diff)
add pdftohtml
A command-line tool for converting pdf-files into html PR: 27824 Submitted by: Soeren Boll Overgaard <boll@tolkien.dk>
Notes
Notes: svn path=/head/; revision=45874
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/pdftohtml/Makefile25
-rw-r--r--textproc/pdftohtml/distinfo1
-rw-r--r--textproc/pdftohtml/files/patch-goo::Makefile16
-rw-r--r--textproc/pdftohtml/files/patch-xpdf::Makefile17
-rw-r--r--textproc/pdftohtml/pkg-comment1
-rw-r--r--textproc/pdftohtml/pkg-descr6
-rw-r--r--textproc/pdftohtml/pkg-plist2
8 files changed, 69 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 4142aaf667bb..b60760543034 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -138,6 +138,7 @@
SUBDIR += p5-libxml
SUBDIR += par
SUBDIR += pardiff
+ SUBDIR += pdftohtml
SUBDIR += perl2html
SUBDIR += pspell
SUBDIR += pspell-ispell
diff --git a/textproc/pdftohtml/Makefile b/textproc/pdftohtml/Makefile
new file mode 100644
index 000000000000..b446b28d7a51
--- /dev/null
+++ b/textproc/pdftohtml/Makefile
@@ -0,0 +1,25 @@
+# ex:ts=8
+# New ports collection makefile for: pdftohtml
+# Date created: 1 Jun 2001
+# Whom: Soeren Boll Overgaard <boll@tolkien.dk>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pdftohtml
+PORTVERSION= 0.31
+CATEGORIES= textproc
+MASTER_SITES= http://www.ra.informatik.uni-stuttgart.de/~gosho/pdftohtml/Download/ \
+ http://ports.tolkien.dk/pdftohtml/
+DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/}_test
+
+MAINTAINER= boll@tolkien.dk
+
+ONLY_FOR_ARCHS= i386
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pdftohtml.bin ${PREFIX}/bin/pdftohtml
+ ${INSTALL_PROGRAM} ${WRKSRC}/pdftops.bin ${PREFIX}/bin/pdftops
+
+.include <bsd.port.mk>
diff --git a/textproc/pdftohtml/distinfo b/textproc/pdftohtml/distinfo
new file mode 100644
index 000000000000..c3ecbc2d017f
--- /dev/null
+++ b/textproc/pdftohtml/distinfo
@@ -0,0 +1 @@
+MD5 (pdftohtml_0_31_test.tar.gz) = 04debc9f08233cb501f7b2e417a25397
diff --git a/textproc/pdftohtml/files/patch-goo::Makefile b/textproc/pdftohtml/files/patch-goo::Makefile
new file mode 100644
index 000000000000..ae9d62c45642
--- /dev/null
+++ b/textproc/pdftohtml/files/patch-goo::Makefile
@@ -0,0 +1,16 @@
+--- goo/Makefile.orig Mon Aug 6 20:03:55 2001
++++ goo/Makefile Mon Aug 6 20:04:26 2001
+@@ -2,11 +2,9 @@
+
+ srcdir = .
+
+-CFLAGS = -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(srcdir)
+-CXXFLAGS = -g -O2 -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(srcdir)
++CFLAGS += -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(srcdir)
++CXXFLAGS += -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(srcdir)
+
+-CC = gcc
+-CXX = c++
+ AR = ar rc
+ RANLIB = ranlib
+
diff --git a/textproc/pdftohtml/files/patch-xpdf::Makefile b/textproc/pdftohtml/files/patch-xpdf::Makefile
new file mode 100644
index 000000000000..0695d64bb775
--- /dev/null
+++ b/textproc/pdftohtml/files/patch-xpdf::Makefile
@@ -0,0 +1,17 @@
+--- xpdf/Makefile.orig Mon Aug 6 20:04:59 2001
++++ xpdf/Makefile Mon Aug 6 20:05:29 2001
+@@ -8,13 +8,11 @@
+ GOOLIBDIR = ../goo
+
+
+-CXXFLAGS = -g -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(GOOSRCDIR) -I$(srcdir)
++CXXFLAGS += -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I$(GOOSRCDIR) -I$(srcdir)
+
+ LDFLAGS =
+
+ OTHERLIBS =
+-
+-CXX = c++
+
+ LIBPREFIX = lib
+ EXE =
diff --git a/textproc/pdftohtml/pkg-comment b/textproc/pdftohtml/pkg-comment
new file mode 100644
index 000000000000..d785ba61adf1
--- /dev/null
+++ b/textproc/pdftohtml/pkg-comment
@@ -0,0 +1 @@
+A command-line tool for converting pdf-files into html
diff --git a/textproc/pdftohtml/pkg-descr b/textproc/pdftohtml/pkg-descr
new file mode 100644
index 000000000000..45c1165c835e
--- /dev/null
+++ b/textproc/pdftohtml/pkg-descr
@@ -0,0 +1,6 @@
+This is a port of pdftohtml, which converts pdf-files into nicely formatted
+html, combined with png-images.
+The HTML generated uses frames to emulate the contentlisting from the pdf.
+
+WWW: http://www.ra.informatik.uni-stuttgart.de/~gosho/pdftohtml/
+Author: Gueorgui Ovtcharov <pdftohtml@ralf.informatik.uni-stuttgart.de>
diff --git a/textproc/pdftohtml/pkg-plist b/textproc/pdftohtml/pkg-plist
new file mode 100644
index 000000000000..16bd196cde4b
--- /dev/null
+++ b/textproc/pdftohtml/pkg-plist
@@ -0,0 +1,2 @@
+bin/pdftohtml
+bin/pdftops