aboutsummaryrefslogtreecommitdiff
path: root/graphics/jbig2dec
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-07-10 11:08:45 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-07-10 11:08:45 +0000
commitdfe1894a239d33b743bdef0a5819bb99ac79c8a1 (patch)
tree44174024ada3062bd96a0565264992d993aa36d7 /graphics/jbig2dec
parentc141526ededbd7103789c7aece5e0755d5e5eb93 (diff)
Add new port graphics/jbig2dec:
jbig2dec is a decoder implementation of the JBIG2 image compression format. JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit monochrome) images at moderately high resolution, and in particular scanned paper documents. In this domain it is very efficient, offering compression ratios on the order of 100:1. WWW: http://jbig2dec.sourceforge.net/ PR: ports/148421 Submitted by: Bapt <baptiste.daroussin at gmail.com>
Notes
Notes: svn path=/head/; revision=257609
Diffstat (limited to 'graphics/jbig2dec')
-rw-r--r--graphics/jbig2dec/Makefile38
-rw-r--r--graphics/jbig2dec/distinfo3
-rw-r--r--graphics/jbig2dec/pkg-descr7
-rw-r--r--graphics/jbig2dec/pkg-plist6
4 files changed, 54 insertions, 0 deletions
diff --git a/graphics/jbig2dec/Makefile b/graphics/jbig2dec/Makefile
new file mode 100644
index 000000000000..1ec05d9528a4
--- /dev/null
+++ b/graphics/jbig2dec/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: jbig2dec
+# Date created: 2010-07-07
+# Whom: Bapt <baptiste.daroussin@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jbig2dec
+PORTVERSION= 0.11
+CATEGORIES= graphics devel
+MASTER_SITES= http://ghostscript.com/~giles/jbig2/jbig2dec/
+
+MAINTAINER= baptiste.daroussin@gmail.com
+COMMENT= Decoder implementation of the JBIG2 image compression format
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+
+OPTIONS= PNG "Enable png support" On
+
+MAN1= jbig2dec.1
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_PNG)
+LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
+CONFIGURE_ARGS+= --with-libpng=${LOCALBASE}
+.endif
+
+post-patch:
+.if defined(WITH_PNG)
+ @${REINPLACE_CMD} 's/png_check_sig/png_sig_cmp/g' ${WRKSRC}/configure
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/jbig2dec/distinfo b/graphics/jbig2dec/distinfo
new file mode 100644
index 000000000000..52414cc2828d
--- /dev/null
+++ b/graphics/jbig2dec/distinfo
@@ -0,0 +1,3 @@
+MD5 (jbig2dec-0.11.tar.gz) = 1f61e144852c86563fee6e5ddced63f1
+SHA256 (jbig2dec-0.11.tar.gz) = 7e2d8330b36f2765da22043d174827bee0f30db8d78c330904f363275c7dd0b9
+SIZE (jbig2dec-0.11.tar.gz) = 371499
diff --git a/graphics/jbig2dec/pkg-descr b/graphics/jbig2dec/pkg-descr
new file mode 100644
index 000000000000..42aaf2afd6f8
--- /dev/null
+++ b/graphics/jbig2dec/pkg-descr
@@ -0,0 +1,7 @@
+jbig2dec is a decoder implementation of the JBIG2 image compression format.
+JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit monochrome)
+images at moderately high resolution, and in particular scanned paper documents.
+In this domain it is very efficient, offering compression ratios on the order of
+100:1.
+
+WWW: http://jbig2dec.sourceforge.net/
diff --git a/graphics/jbig2dec/pkg-plist b/graphics/jbig2dec/pkg-plist
new file mode 100644
index 000000000000..f858763c5136
--- /dev/null
+++ b/graphics/jbig2dec/pkg-plist
@@ -0,0 +1,6 @@
+bin/jbig2dec
+include/jbig2.h
+lib/libjbig2dec.a
+lib/libjbig2dec.la
+lib/libjbig2dec.so
+lib/libjbig2dec.so.0