summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2019-03-06 13:00:02 +0000
committerjoerg <joerg@pkgsrc.org>2019-03-06 13:00:02 +0000
commitd03180ca0a7a1496996e6016f3624e9de6400fe4 (patch)
treecbb0511ac92c689e110938e0874223c34bdd9a88 /graphics
parent381ec2d24f295d14f84294a877be870360a0c7b0 (diff)
downloadpkgsrc-d03180ca0a7a1496996e6016f3624e9de6400fe4.tar.gz
Add jbig2enc-0.29pre:
jbig2enc is a encoder for the JBIG2 image compression format. JBIG2 is designed for lossy and lossless encoding of monochrome images at moderately high resolutions. For scanned paper documents, compression ratios on the order of 100:1 are often seen.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/jbig2enc/DESCR4
-rw-r--r--graphics/jbig2enc/Makefile28
-rw-r--r--graphics/jbig2enc/PLIST18
-rw-r--r--graphics/jbig2enc/distinfo8
-rw-r--r--graphics/jbig2enc/patches/patch-Makefile.am13
-rw-r--r--graphics/jbig2enc/patches/patch-src_Makefile.am15
6 files changed, 86 insertions, 0 deletions
diff --git a/graphics/jbig2enc/DESCR b/graphics/jbig2enc/DESCR
new file mode 100644
index 00000000000..fbbc983c443
--- /dev/null
+++ b/graphics/jbig2enc/DESCR
@@ -0,0 +1,4 @@
+jbig2enc is a encoder for the JBIG2 image compression format. JBIG2 is
+designed for lossy and lossless encoding of monochrome images at
+moderately high resolutions. For scanned paper documents, compression
+ratios on the order of 100:1 are often seen.
diff --git a/graphics/jbig2enc/Makefile b/graphics/jbig2enc/Makefile
new file mode 100644
index 00000000000..b4d07b95ffe
--- /dev/null
+++ b/graphics/jbig2enc/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/03/06 13:00:02 joerg Exp $
+
+DISTNAME= jbig2enc-0.29pre
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=agl/}
+GITHUB_TAG= 0693dcd027f333d8499a4717b6452de08b6834ed
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/agl/jbig2enc
+COMMENT= JBIG2 encoder
+LICENSE= apache-2.0
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= aclocal autoconf autoheader automake
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --libdir=${PREFIX}/lib
+
+pre-configure:
+ cd ${WRKSRC} && ./autogen.sh
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/giflib/buildlink3.mk"
+.include "../../graphics/leptonica/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/jbig2enc/PLIST b/graphics/jbig2enc/PLIST
new file mode 100644
index 00000000000..2ce0deeb0b0
--- /dev/null
+++ b/graphics/jbig2enc/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2019/03/06 13:00:02 joerg Exp $
+bin/jbig2
+include/jbig2arith.h
+include/jbig2comparator.h
+include/jbig2enc.h
+include/jbig2segments.h
+include/jbig2structs.h
+include/jbig2sym.h
+lib/libjbig2enc.la
+share/doc/jbig2enc-0.28/AUTHORS
+share/doc/jbig2enc-0.28/COPYING
+share/doc/jbig2enc-0.28/ChangeLog
+share/doc/jbig2enc-0.28/INSTALL
+share/doc/jbig2enc-0.28/NEWS
+share/doc/jbig2enc-0.28/PATENTS
+share/doc/jbig2enc-0.28/README
+share/doc/jbig2enc-0.28/jbig2enc.html
+share/doc/jbig2enc-0.28/pdf.py
diff --git a/graphics/jbig2enc/distinfo b/graphics/jbig2enc/distinfo
new file mode 100644
index 00000000000..847930ca066
--- /dev/null
+++ b/graphics/jbig2enc/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2019/03/06 13:00:02 joerg Exp $
+
+SHA1 (jbig2enc-0.29pre-0693dcd027f333d8499a4717b6452de08b6834ed.tar.gz) = 4152c4ee57fc26f90ce48af27b9b41a97a4db011
+RMD160 (jbig2enc-0.29pre-0693dcd027f333d8499a4717b6452de08b6834ed.tar.gz) = 9910e8787d9bfe02904b555853ddfade3963238b
+SHA512 (jbig2enc-0.29pre-0693dcd027f333d8499a4717b6452de08b6834ed.tar.gz) = a40da34018596aed76ce1bbf2fa951df95f9159a4a3b22f545fefff85dc748ba0299b5956b3c6e984c3731ef60bacce588ffd0e5e7831ff08149cd8f20422108
+Size (jbig2enc-0.29pre-0693dcd027f333d8499a4717b6452de08b6834ed.tar.gz) = 40240 bytes
+SHA1 (patch-Makefile.am) = 5f0bd89e21c7657ac275ff65c06091af9db5e2f3
+SHA1 (patch-src_Makefile.am) = 4a757a78c15c2a979e168d3052a857632b61e21b
diff --git a/graphics/jbig2enc/patches/patch-Makefile.am b/graphics/jbig2enc/patches/patch-Makefile.am
new file mode 100644
index 00000000000..edde660a0d7
--- /dev/null
+++ b/graphics/jbig2enc/patches/patch-Makefile.am
@@ -0,0 +1,13 @@
+$NetBSD: patch-Makefile.am,v 1.1 2019/03/06 13:00:03 joerg Exp $
+
+Don't install the PDF conversion script, it is of limited usefulness.
+
+--- Makefile.am.orig 2016-08-09 14:25:57.812939920 +0000
++++ Makefile.am
+@@ -1,5 +1,4 @@
+ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = src doc
+-dist_bin_SCRIPTS = pdf.py
+-dist_doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
++dist_doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README pdf.py
+ EXTRA_DIST = autogen.sh
diff --git a/graphics/jbig2enc/patches/patch-src_Makefile.am b/graphics/jbig2enc/patches/patch-src_Makefile.am
new file mode 100644
index 00000000000..ce9eef40334
--- /dev/null
+++ b/graphics/jbig2enc/patches/patch-src_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.am,v 1.1 2019/03/06 13:00:03 joerg Exp $
+
+Install missing main header.
+
+--- src/Makefile.am.orig 2016-08-09 14:34:10.312725761 +0000
++++ src/Makefile.am
+@@ -7,7 +7,7 @@ endif
+ lib_LTLIBRARIES = libjbig2enc.la
+ libjbig2enc_la_SOURCES = jbig2enc.cc jbig2arith.cc jbig2sym.cc jbig2comparator.cc
+ libjbig2enc_la_LDFLAGS = -no-undefined -version-info $(GENERIC_LIBRARY_VERSION)
+-include_HEADERS = jbig2arith.h jbig2sym.h jbig2structs.h jbig2segments.h jbig2comparator.h
++include_HEADERS = jbig2arith.h jbig2enc.h jbig2sym.h jbig2structs.h jbig2segments.h jbig2comparator.h
+
+ bin_PROGRAMS = jbig2
+ jbig2_SOURCES = jbig2.cc