summaryrefslogtreecommitdiffstats
path: root/converters/pdf2djvu
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-07-07 23:14:30 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-07-07 23:14:30 +0800
commit77c108d771fb5f106fc51a1b179b75aaddd1329e (patch)
treefeb01d8c8c99efb652f8f26edabf419446ca51b7 /converters/pdf2djvu
parent90ac1ba1901df3dda37d47369cfc4ae7b592c564 (diff)
downloadmarcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar
marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.gz
marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.bz2
marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.lz
marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.xz
marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.zst
marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.zip
Chase poppler and poppler-glib shlib dump.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14305 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'converters/pdf2djvu')
-rw-r--r--converters/pdf2djvu/Makefile37
-rw-r--r--converters/pdf2djvu/distinfo3
-rw-r--r--converters/pdf2djvu/files/patch-configure24
-rw-r--r--converters/pdf2djvu/pkg-descr5
4 files changed, 69 insertions, 0 deletions
diff --git a/converters/pdf2djvu/Makefile b/converters/pdf2djvu/Makefile
new file mode 100644
index 000000000..8aec7fb1a
--- /dev/null
+++ b/converters/pdf2djvu/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: pdf2djvu
+# Date created: 7 Mar 2008
+# Whom: Denise H. G. <darcsis@gmail.com>
+#
+# $FreeBSD: ports/converters/pdf2djvu/Makefile,v 1.15 2010/03/28 06:32:04 dinoex Exp $
+#
+
+PORTNAME= pdf2djvu
+PORTVERSION= 0.5.11
+PORTREVISION= 4
+CATEGORIES= converters
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+DISTNAME= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFFIX}
+
+MAINTAINER= darcsis@gmail.com
+COMMENT= Pdf2djvu creates DjVu files from PDF files
+
+BUILD_DEPENDS= ${LOCALBASE}/include/pstreams/pstream.h:${PORTSDIR}/devel/pstreams
+LIB_DEPENDS= poppler.6:${PORTSDIR}/graphics/poppler
+LIB_DEPENDS+= djvulibre.22:${PORTSDIR}/graphics/djvulibre-nox11
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= LIBS=${PTHREAD_LIBS} \
+ CPPFLAGS=-I${LOCALBASE}/include
+USE_GMAKE= yes
+
+PLIST_FILES= bin/pdf2djvu
+MAN1= pdf2djvu.1
+MANCOMPRESSED= no
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/converters/pdf2djvu/distinfo b/converters/pdf2djvu/distinfo
new file mode 100644
index 000000000..a8d80c5c1
--- /dev/null
+++ b/converters/pdf2djvu/distinfo
@@ -0,0 +1,3 @@
+MD5 (pdf2djvu_0.5.11.tar.gz) = a9f99c1e755c9f3b5136de235c6851ff
+SHA256 (pdf2djvu_0.5.11.tar.gz) = 6e57f5be61e2274db2aaa78e2a18dff8ddc0fb5e107287bf87fc1270513f66ab
+SIZE (pdf2djvu_0.5.11.tar.gz) = 223827
diff --git a/converters/pdf2djvu/files/patch-configure b/converters/pdf2djvu/files/patch-configure
new file mode 100644
index 000000000..44d5a4fdf
--- /dev/null
+++ b/converters/pdf2djvu/files/patch-configure
@@ -0,0 +1,24 @@
+--- configure.orig 2009-07-31 17:17:53.000000000 +0200
++++ configure 2009-08-19 20:28:26.000000000 +0200
+@@ -2993,9 +2993,9 @@
+ printf 'P1 3 3 0 0 0 0 0 0 0 0 0 0' > conftest.458086.pbm
+ "$djvulibre_bin_path/cjb2" conftest.458086.pbm conftest.458086.p1.djvu
+ "$djvulibre_bin_path/cjb2" conftest.458086.pbm conftest.458086.p2.djvu
+-printf 'AT&TFORM\0\0\0\x35DJVMDIRM\0\0\0\x29\x01\0\x02\xff\xff\xc6\xbf\x8a' > conftest.458086.djvu
+-printf '\x1f\xeb\x4b\xff\x40\x8e\x37\x86\x3f\x6c\xbe\x78\x02\x3c\x93\x9b' >> conftest.458086.djvu
+-printf '\x17\x57\x16\x67\x1d\x7a\xeb\x57\xf8\xf3\x7e\x64\x32\x42\x88\xd2\x4f' >> conftest.458086.djvu
++printf 'AT&TFORM\0\0\0\065DJVMDIRM\0\0\0\051\001\0\002\377\377\306\277\212' > conftest.458086.djvu
++printf '\037\353\113\377\100\216\067\206\077\154\276\170\002\074\223\233' >> conftest.458086.djvu
++printf '\027\127\026\147\035\172\353\127\370\363\176\144\062\102\210\322\117' >> conftest.458086.djvu
+ printf '(bookmarks ("" ""))' > conftest.458086.outline
+ "$djvulibre_bin_path/djvused" -s -e 'set-outline conftest.458086.outline' conftest.458086.djvu
+ if ! "$djvulibre_bin_path/djvused" -e print-outline conftest.458086.djvu | grep '(bookmarks' > /dev/null
+@@ -3170,7 +3170,7 @@
+ fi
+
+
+-
++pkg_failed=untried; echo "disabled"
+ if test $pkg_failed = yes; then
+
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
diff --git a/converters/pdf2djvu/pkg-descr b/converters/pdf2djvu/pkg-descr
new file mode 100644
index 000000000..a7c51eb6f
--- /dev/null
+++ b/converters/pdf2djvu/pkg-descr
@@ -0,0 +1,5 @@
+pdf2djvu creates DjVu files from PDF files. It's able to extract:
+graphics, text layer, hyperlinks, document outline (bookmarks), and
+metadata.
+
+WWW: http://code.google.com/p/pdf2djvu/