From 0a0776564957eb120aa34014d2a2c2e8c2b5d1f0 Mon Sep 17 00:00:00 2001 From: sthen Date: Sun, 11 Oct 2009 09:59:16 +0000 Subject: [PATCH] import jbig2dec jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and now included by reference in Adobe's PDF 1.4. --- graphics/jbig2dec/Makefile | 41 +++++++++++++++++++ graphics/jbig2dec/distinfo | 10 +++++ .../jbig2dec/patches/patch-test_jbig2dec_py | 9 ++++ graphics/jbig2dec/pkg/DESCR | 3 ++ graphics/jbig2dec/pkg/PLIST | 4 ++ 5 files changed, 67 insertions(+) create mode 100644 graphics/jbig2dec/Makefile create mode 100644 graphics/jbig2dec/distinfo create mode 100644 graphics/jbig2dec/patches/patch-test_jbig2dec_py create mode 100644 graphics/jbig2dec/pkg/DESCR create mode 100644 graphics/jbig2dec/pkg/PLIST diff --git a/graphics/jbig2dec/Makefile b/graphics/jbig2dec/Makefile new file mode 100644 index 00000000000..a8798ee1c75 --- /dev/null +++ b/graphics/jbig2dec/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/10/11 09:59:16 sthen Exp $ + +COMMENT= decoder for JBIG2 monochrome hi-res image compression format + +DISTNAME= jbig2dec-0.10 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + jb2streams.zip:0 + +CATEGORIES= graphics + +HOMEPAGE= http://jbig2dec.sourceforge.net/ + +# GPLv2+ +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://ghostscript.com/~giles/jbig2/jbig2dec/ +MASTER_SITES0= http://jbig2dec.sourceforge.net/ubc/ + +WANTLIB += c m z + +LIB_DEPENDS= png::graphics/png + +SEPARATE_BUILD= concurrent +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= --with-libpng=${LOCALBASE} +CFLAGS+= -I${LOCALBASE}/include/libpng +CONFIGURE_ENV= LDFLAGS="`pkg-config --libs libpng`" + +MODULES= lang/python +MODPY_RUNDEP= No +REGRESS_DEPENDS= ${BUILD_DEPENDS} + +pre-regress: + ${SUBST_CMD} -c ${WRKSRC}/test_jbig2dec.py ${WRKBUILD}/test_jbig2dec.py + ${INSTALL_DATA_DIR} ${WRKBUILD}/ubc/ + mv ${WRKDIR}/*bmp ${WRKDIR}/*jb2 ${WRKBUILD}/ubc/ + +.include diff --git a/graphics/jbig2dec/distinfo b/graphics/jbig2dec/distinfo new file mode 100644 index 00000000000..fcd5285b55e --- /dev/null +++ b/graphics/jbig2dec/distinfo @@ -0,0 +1,10 @@ +MD5 (jb2streams.zip) = IO5UOiBVfrWNEimmChPbgA== +MD5 (jbig2dec-0.10.tar.gz) = 05EkCtvBIfZ/stGXH/we4w== +RMD160 (jb2streams.zip) = c1U974zLZN3miF2kJb0UmUQAm/4= +RMD160 (jbig2dec-0.10.tar.gz) = Bkfe+38jT/bwniqRvQb43T9csLo= +SHA1 (jb2streams.zip) = JQGTW3JzTomaDCyiS4tltoEP4xo= +SHA1 (jbig2dec-0.10.tar.gz) = DvhbEZncWlVpDn1REArMLAleddc= +SHA256 (jb2streams.zip) = PR5ceQVLWdBhyr2x17otGz+EcA9cUXukMG9wR2YAFvc= +SHA256 (jbig2dec-0.10.tar.gz) = 8I98e6DLM2XDusyRe+xJEgUsoNwQLO3bBbvO+Y7QL+4= +SIZE (jb2streams.zip) = 1285838 +SIZE (jbig2dec-0.10.tar.gz) = 165877 diff --git a/graphics/jbig2dec/patches/patch-test_jbig2dec_py b/graphics/jbig2dec/patches/patch-test_jbig2dec_py new file mode 100644 index 00000000000..d63ea703229 --- /dev/null +++ b/graphics/jbig2dec/patches/patch-test_jbig2dec_py @@ -0,0 +1,9 @@ +$OpenBSD: patch-test_jbig2dec_py,v 1.1.1.1 2009/10/11 09:59:16 sthen Exp $ +--- test_jbig2dec.py.orig Tue Jul 14 22:00:16 2009 ++++ test_jbig2dec.py Tue Jul 14 22:00:21 2009 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#!${MODPY_BIN} + + # this is the testtest script for jbig2dec + diff --git a/graphics/jbig2dec/pkg/DESCR b/graphics/jbig2dec/pkg/DESCR new file mode 100644 index 00000000000..82abc6d0050 --- /dev/null +++ b/graphics/jbig2dec/pkg/DESCR @@ -0,0 +1,3 @@ +jbig2dec is a decoder library and example utility implementing the JBIG2 +bi-level image compression spec. Also known as ITU T.88 and ISO IEC +14492, and now included by reference in Adobe's PDF 1.4. diff --git a/graphics/jbig2dec/pkg/PLIST b/graphics/jbig2dec/pkg/PLIST new file mode 100644 index 00000000000..d944604b200 --- /dev/null +++ b/graphics/jbig2dec/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/11 09:59:16 sthen Exp $ +@bin bin/jbig2dec +include/jbig2.h +lib/libjbig2dec.a