summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2006-08-30 17:03:28 +0000
committerdrochner <drochner@pkgsrc.org>2006-08-30 17:03:28 +0000
commit519e5a0a0ebc5d889277c81389f69b17f3fd97a0 (patch)
tree6f3a917c914782c6e105cababf51fa7bbb3849a9 /graphics
parent14df50d9b79429f86c3f68d49dd6d4efaa457e76 (diff)
downloadpkgsrc-519e5a0a0ebc5d889277c81389f69b17f3fd97a0.tar.gz
import djvulibre-lib-3.5.17, which is the library part of the "djvulibre"
distribution, which is a (de)compression library for the "djvu" file format, which is useful for scanned documents
Diffstat (limited to 'graphics')
-rw-r--r--graphics/djvulibre-lib/DESCR10
-rw-r--r--graphics/djvulibre-lib/Makefile23
-rw-r--r--graphics/djvulibre-lib/PLIST27
-rw-r--r--graphics/djvulibre-lib/buildlink3.mk19
-rw-r--r--graphics/djvulibre-lib/distinfo8
-rw-r--r--graphics/djvulibre-lib/patches/patch-aa22
-rw-r--r--graphics/djvulibre-lib/patches/patch-ab15
-rw-r--r--graphics/djvulibre-lib/patches/patch-ac13
8 files changed, 137 insertions, 0 deletions
diff --git a/graphics/djvulibre-lib/DESCR b/graphics/djvulibre-lib/DESCR
new file mode 100644
index 00000000000..4aa5cef72a0
--- /dev/null
+++ b/graphics/djvulibre-lib/DESCR
@@ -0,0 +1,10 @@
+DjVu is a set of compression technologies, a file format,
+and a software platform for the delivery over the Web of digital documents,
+scanned documents, and high resolution images.
+
+DjVu documents download and display extremely quickly, and look exactly the
+same on all platforms. DjVu can be seen as superior alternative to PDF and
+Postscript for digital documents, to TIFF (and PDF) for scanned documents, to
+JPEG for photographs and pictures, and to GIF for large palettized
+images. DjVu is the only Web format that is practical for distributing
+high-resolution scanned documents in color. No other format comes close.
diff --git a/graphics/djvulibre-lib/Makefile b/graphics/djvulibre-lib/Makefile
new file mode 100644
index 00000000000..87772a327d9
--- /dev/null
+++ b/graphics/djvulibre-lib/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+#
+
+DISTNAME= djvulibre-3.5.17
+PKGNAME= djvulibre-lib-3.5.17
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=djvu/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://djvulibre.djvuzone.org/
+COMMENT= Compression library for scanned documents
+
+USE_TOOLS+= pkg-config
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+
+PKGCONFIG_OVERRIDE+= libdjvu/ddjvuapi.pc.in
+BUILD_DIRS= libdjvu
+INSTALL_DIRS= libdjvu
+
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/djvulibre-lib/PLIST b/graphics/djvulibre-lib/PLIST
new file mode 100644
index 00000000000..819e004b408
--- /dev/null
+++ b/graphics/djvulibre-lib/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+include/libdjvu/ddjvuapi.h
+include/libdjvu/miniexp.h
+lib/libdjvulibre.la
+lib/pkgconfig/ddjvuapi.pc
+share/djvu/languages.xml
+share/djvu/osi/de/libdjvu++.xml
+share/djvu/osi/de/messages.xml
+share/djvu/osi/en/djvutools-reference.xml
+share/djvu/osi/en/libdjvu++.xml
+share/djvu/osi/en/messages.xml
+share/djvu/osi/en/unixgui-shared.xml
+share/djvu/osi/en/unixgui-viewer.xml
+share/djvu/osi/fr/libdjvu++.xml
+share/djvu/osi/fr/messages.xml
+share/djvu/osi/ja/libdjvu++.xml
+share/djvu/osi/ja/messages.xml
+share/djvu/osi/zh/libdjvu++.xml
+share/djvu/osi/zh/messages.xml
+@dirrm share/djvu/osi/zh
+@dirrm share/djvu/osi/ja
+@dirrm share/djvu/osi/fr
+@dirrm share/djvu/osi/en
+@dirrm share/djvu/osi/de
+@dirrm share/djvu/osi
+@dirrm share/djvu
+@dirrm include/libdjvu
diff --git a/graphics/djvulibre-lib/buildlink3.mk b/graphics/djvulibre-lib/buildlink3.mk
new file mode 100644
index 00000000000..b6568863819
--- /dev/null
+++ b/graphics/djvulibre-lib/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+DJVULIBRE_LIB_BUILDLINK3_MK:= ${DJVULIBRE_LIB_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= djvulibre-lib
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndjvulibre-lib}
+BUILDLINK_PACKAGES+= djvulibre-lib
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}djvulibre-lib
+
+.if ${DJVULIBRE_LIB_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.djvulibre-lib+= djvulibre-lib>=3.5.17
+BUILDLINK_PKGSRCDIR.djvulibre-lib?= ../../graphics/djvulibre-lib
+.endif # DJVULIBRE_LIB_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/graphics/djvulibre-lib/distinfo b/graphics/djvulibre-lib/distinfo
new file mode 100644
index 00000000000..6c6efc79d90
--- /dev/null
+++ b/graphics/djvulibre-lib/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+
+SHA1 (djvulibre-3.5.17.tar.gz) = ee7358b0d3a5941e0f68dae1f5cd44407d63b1bd
+RMD160 (djvulibre-3.5.17.tar.gz) = 1f9d2b1106d1e1898f04c0657b2c8b557246c33e
+Size (djvulibre-3.5.17.tar.gz) = 2298690 bytes
+SHA1 (patch-aa) = c819c6b1218b3178983bb48e53c4d3c0f7dd0227
+SHA1 (patch-ab) = 0144669dfb565d947ded9eaeff006ad8bbbba95a
+SHA1 (patch-ac) = 0c713031903aade12eda1d898595798a1468fd0a
diff --git a/graphics/djvulibre-lib/patches/patch-aa b/graphics/djvulibre-lib/patches/patch-aa
new file mode 100644
index 00000000000..2cf1020c913
--- /dev/null
+++ b/graphics/djvulibre-lib/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+
+--- tools/Makefile.in.orig 2005-08-23 18:49:23.000000000 +0200
++++ tools/Makefile.in
+@@ -47,7 +47,7 @@ TIFF_CFLAGS=@TIFF_CFLAGS@
+ THREAD_LIBS = @THREAD_LIBS@
+ THREAD_CFLAGS = @THREAD_CFLAGS@
+
+-LIBDJVU = ${top_builddir}/libdjvu/libdjvulibre.la
++LIBDJVU = ${prefix}/lib/libdjvulibre.la
+
+ INCS = -I${top_builddir} -I${top_srcdir} -I${top_srcdir}/libdjvu -I${srcdir}
+ FLAGS = ${DEFS} ${INCS} ${OPTS} ${JPEG_CFLAGS} ${TIFF_CFLAGS} ${THREAD_CFLAGS}
+@@ -81,7 +81,7 @@ install-bin: ${PROGRAMS} FORCE
+ install-scripts: FORCE
+ ${INSTALL} -d ${DESTDIR}${bindir}
+ for n in ${SCRIPTS} ; do \
+- ${INSTALL_PROGRAM} -m 0755 ${srcdir}/$$n ${DESTDIR}${bindir} \
++ ${INSTALL_SCRIPT} -m 0755 ${srcdir}/$$n ${DESTDIR}${bindir} \
+ || exit ; done
+
+ install-man: FORCE
diff --git a/graphics/djvulibre-lib/patches/patch-ab b/graphics/djvulibre-lib/patches/patch-ab
new file mode 100644
index 00000000000..6735ce92843
--- /dev/null
+++ b/graphics/djvulibre-lib/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+
+--- libdjvu/miniexp.h.orig 2006-02-21 20:27:41.000000000 +0100
++++ libdjvu/miniexp.h
+@@ -38,7 +38,9 @@ extern "C" {
+ /* miniexp_t --
+ Opaque pointer type representing a lisp expression. */
+
+-typedef struct miniexp_s* miniexp_t;
++#ifndef DDJVUAPI /* avoid double declaration */
++typedef struct miniexp_s* miniexp_t;
++#endif
+
+
+ /* There are four basic types of lisp expressions,
diff --git a/graphics/djvulibre-lib/patches/patch-ac b/graphics/djvulibre-lib/patches/patch-ac
new file mode 100644
index 00000000000..1e38ed61285
--- /dev/null
+++ b/graphics/djvulibre-lib/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/08/30 17:03:28 drochner Exp $
+
+--- xmltools/Makefile.in.orig 2006-08-30 17:02:59.000000000 +0200
++++ xmltools/Makefile.in
+@@ -45,7 +45,7 @@ JPEG_CFLAGS=@JPEG_CFLAGS@
+ THREAD_LIBS = @THREAD_LIBS@
+ THREAD_CFLAGS = @THREAD_CFLAGS@
+
+-LIBDJVU = ${top_builddir}/libdjvu/libdjvulibre.la
++LIBDJVU = ${prefix}/lib/libdjvulibre.la
+
+ INCS = -I${top_builddir} -I${top_srcdir}/libdjvu -I${srcdir}
+ FLAGS = ${DEFS} ${INCS} ${OPTS} ${JPEG_CFLAGS} ${THREAD_CFLAGS}