summaryrefslogtreecommitdiff
path: root/graphics/djvulibre
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2000-03-29 21:22:50 +0000
committerAde Lovett <ade@FreeBSD.org>2000-03-29 21:22:50 +0000
commitefa4d5ebbca92b4f3f44630c70cb3661f005accb (patch)
tree0f86ba5f628727667321d732d63485dbe6ca7222 /graphics/djvulibre
parentFix CATEGORIES, since this port does not belong in converters. (diff)
libdjvu++ is AT&T's DjVu library from scanned images
See http://www.djvu.com/ for more details PR: 12722 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Notes
Notes: svn path=/head/; revision=27125
Diffstat (limited to 'graphics/djvulibre')
-rw-r--r--graphics/djvulibre/Makefile39
-rw-r--r--graphics/djvulibre/distinfo1
-rw-r--r--graphics/djvulibre/files/patch-aa7
-rw-r--r--graphics/djvulibre/files/patch-ab7
-rw-r--r--graphics/djvulibre/files/patch-ac18
-rw-r--r--graphics/djvulibre/pkg-comment1
-rw-r--r--graphics/djvulibre/pkg-descr14
-rw-r--r--graphics/djvulibre/pkg-plist120
8 files changed, 207 insertions, 0 deletions
diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile
new file mode 100644
index 000000000000..4b3bcce5127f
--- /dev/null
+++ b/graphics/djvulibre/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: libdjvu++
+# Version required: 2.1
+# Date Created: 20 July 1999
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= libdjvu++-2.1
+CATEGORIES= graphics
+MASTER_SITES= http://www.djvu.com/open/
+
+MAINTAINER= mi@aldan.algebra.com
+
+IS_INTERACTIVE= yes
+USE_NEWGCC= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ENV= CXX=${CXX}
+CONFIGURE_ARGS= --with-cxxflag="${CXXFLAGS}"
+MAKE_ARGS= OPT=""
+
+post-extract:
+ ${SH} ${WRKSRC}/RunMe
+
+do-install:
+.for prog in djvuinfo c44 d44 djvutopnm djvumake djvuextract ppmcoco bzz
+ ${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${PREFIX}/bin
+.endfor
+.for lib in libdjvu++.a libdjvu++.so.2
+ ${INSTALL_DATA} ${WRKSRC}/${lib} ${PREFIX}/lib
+.endfor
+ ${LN} -sf libdjvu++.so.2 ${PREFIX}/lib/libdjvu++.so
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/djvu
+ ${INSTALL_DATA} ${WRKSRC}/@Doc/* ${PREFIX}/share/doc/djvu
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/djvulibre/distinfo b/graphics/djvulibre/distinfo
new file mode 100644
index 000000000000..83a93eee79c9
--- /dev/null
+++ b/graphics/djvulibre/distinfo
@@ -0,0 +1 @@
+MD5 (libdjvu++-2.1.tar.gz) = b218b0ac7bffc6771c6c455f97fcb4eb
diff --git a/graphics/djvulibre/files/patch-aa b/graphics/djvulibre/files/patch-aa
new file mode 100644
index 000000000000..213b2b6f2177
--- /dev/null
+++ b/graphics/djvulibre/files/patch-aa
@@ -0,0 +1,7 @@
+--- DjVuImage.cpp.orig Wed Mar 17 14:24:56 1999
++++ DjVuImage.cpp Tue Jul 20 14:32:03 1999
+@@ -125,3 +125,3 @@
+ GCriticalSectionLock lock(&mutex);
+- bs.writall((const void*)raw, raw.length());
++ bs.writall((const char*)raw, raw.length());
+ }
diff --git a/graphics/djvulibre/files/patch-ab b/graphics/djvulibre/files/patch-ab
new file mode 100644
index 000000000000..673e68e9b1dc
--- /dev/null
+++ b/graphics/djvulibre/files/patch-ab
@@ -0,0 +1,7 @@
+--- GContainer.h.orig Wed Mar 17 14:24:57 1999
++++ GContainer.h Tue Jul 20 14:33:21 1999
+@@ -981,3 +981,3 @@
+ if (data && lobound<=hibound)
+- for (int i=lobound; i<=hibound; i++)
++ for (i=lobound; i<=hibound; i++)
+ data[i-minlo].TYPE::~TYPE();
diff --git a/graphics/djvulibre/files/patch-ac b/graphics/djvulibre/files/patch-ac
new file mode 100644
index 000000000000..4479876a3178
--- /dev/null
+++ b/graphics/djvulibre/files/patch-ac
@@ -0,0 +1,18 @@
+--- Makefile.in.orig Wed Mar 17 14:24:59 1999
++++ Makefile.in Tue Jul 20 18:08:59 1999
+@@ -36 +36 @@
+-LIB= libdjvu++.a
++LIB= libdjvu++.so
+@@ -53,4 +53,3 @@
+-$(LIB): $(LIBOBJS)
+- if [ -r $(LIB) ] ; then rm $(LIB) ; fi
+- $(AR) cq $(LIB) $(LIBOBJS)
+- $(RANLIB) $(LIB)
++$(LIB): ${LIBOBJS:.o=.cpp}
++ ${MAKE} -f bsd.lib.mk CXX="${CXX}" OBJS="${LIBOBJS}" LIB=djvu++ \
++ SHLIB_MAJOR=${VER:R} SHLIB_MINOR=${VER:E}
+--- @Test/Makefile.in.orig Fri Mar 5 19:42:53 1999
++++ @Test/Makefile.in Tue Jul 20 18:00:24 1999
+@@ -17 +17 @@
+-LIB= ../libdjvu++.a
++LIB= ../libdjvu++.so
diff --git a/graphics/djvulibre/pkg-comment b/graphics/djvulibre/pkg-comment
new file mode 100644
index 000000000000..a82ec017d34f
--- /dev/null
+++ b/graphics/djvulibre/pkg-comment
@@ -0,0 +1 @@
+AT&T's DjVu: The Technology for Scanned Documents on the Web
diff --git a/graphics/djvulibre/pkg-descr b/graphics/djvulibre/pkg-descr
new file mode 100644
index 000000000000..0bfc4d667132
--- /dev/null
+++ b/graphics/djvulibre/pkg-descr
@@ -0,0 +1,14 @@
+The DjVu Reference Library does not contain the entire implementation of
+the DjVu system. While it contains the entire decoder, and a big
+piece of the encoder, it does not contain the sophisticated encoding
+strategies necessary for reaching the highest compression ratios.
+
+Among other things, The DjVu Reference Library contains the full DjVu
+decoder, the full IW44 wavelet encoder/decoder for continuous tone
+images, and the back-end of JB2 bilevel image compression technique.
+However, it does not contain the code for separating document images
+into foreground and background layers, nor does it contain the code of
+the lossy JB2 scheme that achieves the highest compression ratios on
+bitonal images.
+
+WWW: http://www.djvu.com/
diff --git a/graphics/djvulibre/pkg-plist b/graphics/djvulibre/pkg-plist
new file mode 100644
index 000000000000..a04a99c5d242
--- /dev/null
+++ b/graphics/djvulibre/pkg-plist
@@ -0,0 +1,120 @@
+bin/djvuinfo
+bin/c44
+bin/d44
+bin/djvutopnm
+bin/djvumake
+bin/djvuextract
+bin/ppmcoco
+bin/bzz
+lib/libdjvu++.a
+lib/libdjvu++.so
+lib/libdjvu++.so.2
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+share/doc/djvu/ATTLicense.h.html
+share/doc/djvu/ATTLicense.html
+share/doc/djvu/ATTSourceCodeAgreement.html
+share/doc/djvu/BSByteStream.h.html
+share/doc/djvu/BSByteStream.html
+share/doc/djvu/BitContext.html
+share/doc/djvu/ByteStream.h.html
+share/doc/djvu/ByteStream.html
+share/doc/djvu/ClassGraph.class
+share/doc/djvu/ClassGraphPanel.class
+share/doc/djvu/ClassLayout.class
+share/doc/djvu/CompilingtheLibrarySystemsotherthanUnix.html
+share/doc/djvu/CompilingtheLibraryUnix.html
+share/doc/djvu/DJVUVERSION.html
+share/doc/djvu/DJVUVERSION_TOO_NEW.html
+share/doc/djvu/GArray.html
+share/doc/djvu/DJVUVERSION_TOO_OLD.html
+share/doc/djvu/DecodingDjVuContent.html
+share/doc/djvu/DjVuAnno.html
+share/doc/djvu/DjVuFileStructure.html
+share/doc/djvu/DjVuGlobal.h.html
+share/doc/djvu/DjVuImage.h.html
+share/doc/djvu/DjVuImage.html
+share/doc/djvu/DjVuImageFiles.html
+share/doc/djvu/DjVuInfo.html
+share/doc/djvu/DjVuInterface.html
+share/doc/djvu/DjVuMemory.html
+share/doc/djvu/DjVuNames.html
+share/doc/djvu/DjVuProgress.html
+share/doc/djvu/DjVuversionconstants.html
+share/doc/djvu/ExperimentalFeatures..html
+share/doc/djvu/GBitmap.h.html
+share/doc/djvu/GBitmap.html
+share/doc/djvu/GBitmapScaler.html
+share/doc/djvu/GContainer.h.html
+share/doc/djvu/GContainer.html
+share/doc/djvu/GContainerBase.html
+share/doc/djvu/GException.h.html
+share/doc/djvu/GException.html
+share/doc/djvu/GList.html
+share/doc/djvu/GMap.html
+share/doc/djvu/GMonitor.html
+share/doc/djvu/GMonitorLock.html
+share/doc/djvu/GOS.h.html
+share/doc/djvu/GOS.html
+share/doc/djvu/GP.html
+share/doc/djvu/GPBase.html
+share/doc/djvu/GPEnabled.html
+share/doc/djvu/GPixel.html
+share/doc/djvu/GPixmap.h.html
+share/doc/djvu/GPixmap.html
+share/doc/djvu/GPixmapScaler.html
+share/doc/djvu/GPosition.html
+share/doc/djvu/GRect.h.html
+share/doc/djvu/GRect.html
+share/doc/djvu/GSArray.html
+share/doc/djvu/GRectMapper.html
+share/doc/djvu/GScaler.h.html
+share/doc/djvu/GScaler.html
+share/doc/djvu/GSmartPointer.h.html
+share/doc/djvu/GString.h.html
+share/doc/djvu/GString.html
+share/doc/djvu/GThread.html
+share/doc/djvu/GThreads.h.html
+share/doc/djvu/GettingStarted.html
+share/doc/djvu/HIER.html
+share/doc/djvu/HIERjava.html
+share/doc/djvu/Hashfunctions.html
+share/doc/djvu/IFFByteStream.h.html
+share/doc/djvu/IFFByteStream.html
+share/doc/djvu/IW44ImageFiles.html
+share/doc/djvu/IWBitmap.html
+share/doc/djvu/IWEncoderParms.html
+share/doc/djvu/IWImage.h.html
+share/doc/djvu/IWPixmap.html
+share/doc/djvu/aindex.html
+share/doc/djvu/Introduction.html
+share/doc/djvu/JB2Blit.html
+share/doc/djvu/JB2Image.h.html
+share/doc/djvu/JB2Image.html
+share/doc/djvu/JB2Shape.html
+share/doc/djvu/LibraryReference.html
+share/doc/djvu/MemoryByteStream.html
+share/doc/djvu/NavigatorButton.class
+share/doc/djvu/PNMandRLEfileformats.html
+share/doc/djvu/StaticByteStream.html
+share/doc/djvu/StdioByteStream.html
+share/doc/djvu/UtilityPrograms.html
+share/doc/djvu/ZPCodec.h.html
+share/doc/djvu/ZPCodec.html
+share/doc/djvu/ZPCodecExamples.html
+share/doc/djvu/bzz.html
+share/doc/djvu/c44.html
+share/doc/djvu/d44.html
+share/doc/djvu/down.gif
+share/doc/djvu/djvuextract.html
+share/doc/djvu/djvuinfo.2.html
+share/doc/djvu/djvumake.html
+share/doc/djvu/djvutopnm.html
+share/doc/djvu/dxxgifs.tex
+share/doc/djvu/gifs.db
+share/doc/djvu/icon1.gif
+share/doc/djvu/icon2.gif
+share/doc/djvu/index.html
+share/doc/djvu/logo.gif
+share/doc/djvu/ppmcoco.html
+@dirrm share/doc/djvu