Changes in version 2.0 (2008-08-30) Main new features of release 2.0: - This release adds a separate lightweight "T.85" version of the encoder and decoder library (jbig85.c, jbig85.h). This new T.85 library is optimized for embedded low-memory applications, such as printers and fax machines. It implements only the subset of the JBIG standard that is required by the ITU-T T.85 fax profile, namely only a single bit plane (P = 1) and no differential layers (DL = D = HITOLO = SEQ = ILEAVE = SMID = TPDON = DPON = DPON = DPLAST = 0) and some other restrictions (MY = 0, MX < 128). The T.85 library requires only three pixel rows of the uncompressed image to reside in memory at any time. This 3-line buffer has to be allocated by the calling application, therefore the T.85 library will not call any heap management functions such as malloc() or free() itself. - There are also two new example applications pbmtojbg85 and jbgtopbm85 included that provide command-line access to the new T.85 library. (Note to distribution maintainers: there is probably little point in adding pbmtojbg85 and jbgtopbm85 to precompiled JBIG-KIT packages for workstation operating systems, as these two programs do not really provide the end user much additional functionality beyond what pbmtojbg and jbgtopbm already do, which use the full library instead.) Changes to the original full jbig.c library from version 1.6: - the arithmetic codec routines are now located in a separate source file (they are now used by both the full library jbig.c and the new T.85 library jbig85.c, and might also be of use to other applications) - arithmetic decoder behaviour slightly changed to enable the lookahead needed to handle T.85-style NEWLEN after the final stripe - added encoder support for adding comment marker segment - added encoder option for using SDRST marker instead of SDNORM (only useful to make encoder able to generate a wider range of test data) - added pbmtojbg options -C and -r, which provide command-line access to the previous two extensions - slightly improved diagnostic output of jbgtopbm option -d - non-English translations of error messages are now provided in a separate PO file (e.g., for use with GNU gettext), jbg_strerror() no longer has a language attribute and the JBG_EN, JBG_DE_8859_1, JBG_DE_UTF_8 constants no longer exist - jbg_dec_in() return values changed; the least significant bits of the error codes now provide more information about what caused the error, beyond what the more general error text messages returned by jbg_strerror() reveal - pbmtojbg has a new option -f as a shortcut for all the options needed to make the output comply to the basic ITU-T T.85 fax profile - jbg_dec_getwidth(), jbg_dec_getheight(), jbg_dec_getsize(), and jbg_dec_getsize_merged() return now an unsigned long value (was: long), and return 0 (was: -1) if no image is available yet - jbgtopbm now outputs image dimensions in header padded to 10 digits fixed width, for consistency with jbgtopbm85 to allow for later in-place update of height due to NEWLEN - macro JBG_LICENCE can be changed from the default value "GPL" to a licence agreement reference code to if the library is used under a commercial licence, to clarify under which exact licence the library is used in a particular application
42 lines
1 KiB
Makefile
42 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2008/11/24 01:24:11 obache Exp $
|
|
#
|
|
|
|
DISTNAME= jbigkit-2.0
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.cl.cam.ac.uk/~mgk25/download/
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
|
HOMEPAGE= http://www.cl.cam.ac.uk/~mgk25/jbigkit/
|
|
COMMENT= JBIG-KIT lossless image compression library
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
WRKSRC= ${WRKDIR}/jbigkit
|
|
|
|
TEST_TARGET= test
|
|
|
|
INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1 share/doc/jbig
|
|
|
|
do-install:
|
|
${RUN} \
|
|
cd ${WRKSRC}/libjbig; \
|
|
for h in *.h; do \
|
|
${INSTALL_DATA} $${h} ${DESTDIR}${PREFIX}/include; \
|
|
done; \
|
|
for l in *.a; do \
|
|
${INSTALL_DATA} $${l} ${DESTDIR}${PREFIX}/lib; \
|
|
done; \
|
|
for t in *.txt; do \
|
|
${INSTALL_DATA} $${t} ${DESTDIR}${PREFIX}/share/doc/jbig; \
|
|
done; \
|
|
cd ${WRKSRC}/pbmtools; \
|
|
for p in jbgtopbm jbgtopbm85 pbmtojbg pbmtojbg85; do \
|
|
${INSTALL_PROGRAM} $${p} ${DESTDIR}${PREFIX}/bin; \
|
|
done; \
|
|
for m in *.1; do \
|
|
${INSTALL_MAN} $${m} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
|
|
done;
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|