From 7bb859f8c227efe0d2e4ad899225ab7ef492f5ae Mon Sep 17 00:00:00 2001 From: kwm Date: Sun, 11 Oct 2009 10:40:04 +0000 Subject: I was too fast with removing this port. While its true the new version builds with poppler 0.12. The port doesn't take into account the slib bump. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13108 df743ca5-7f9a-e211-a948-0013205c9059 --- converters/pdf2djvu/Makefile | 37 +++++++++++++++++++++++++++++++ converters/pdf2djvu/distinfo | 3 +++ converters/pdf2djvu/files/patch-configure | 24 ++++++++++++++++++++ converters/pdf2djvu/pkg-descr | 5 +++++ 4 files changed, 69 insertions(+) create mode 100644 converters/pdf2djvu/Makefile create mode 100644 converters/pdf2djvu/distinfo create mode 100644 converters/pdf2djvu/files/patch-configure create mode 100644 converters/pdf2djvu/pkg-descr (limited to 'converters') diff --git a/converters/pdf2djvu/Makefile b/converters/pdf2djvu/Makefile new file mode 100644 index 000000000..a5f913645 --- /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. +# +# $FreeBSD: ports/converters/pdf2djvu/Makefile,v 1.12 2009/09/19 12:48:57 miwi Exp $ +# + +PORTNAME= pdf2djvu +PORTVERSION= 0.5.11 +PORTREVISION= 1 +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.5:${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 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/ -- cgit v1.2.3