Index: head/graphics/jpeg-turbo/Makefile =================================================================== --- head/graphics/jpeg-turbo/Makefile (revision 376691) +++ head/graphics/jpeg-turbo/Makefile (revision 376692) @@ -1,47 +1,47 @@ # Created by: Denis Podolskiy # $FreeBSD$ PORTNAME= jpeg-turbo PORTVERSION= 1.3.1 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= graphics MASTER_SITES= SF/lib${PORTNAME}/${PORTVERSION} DISTNAME= lib${PORTNAME}-${PORTVERSION} MAINTAINER= bytestore@yandex.ru COMMENT?= SIMD-accelerated JPEG codec which replaces libjpeg BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm ONLY_FOR_ARCHS= amd64 i386 USES= libtool GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-jpeg8 USE_LDCONFIG= yes ALL_TARGET= test INSTALL_TARGET= install-strip PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES DOCS_MAKE_ARGS= docdir="${DOCSDIR}" DOCS_MAKE_ARGS_OFF= dist_doc_DATA="" EXAMPLES_MAKE_ARGS= exampledir="${EXAMPLESDIR}" EXAMPLES_MAKE_ARGS_OFF= dist_example_DATA="" .if defined(SLAVE_PORT) CONFIGURE_ARGS+=--with-pic PLIST_SUB+= JPEG="@comment " LIBTURBOJPEG="" .else CONFIGURE_ARGS+=--program-suffix=-turbo --without-libturbojpeg PLIST_SUB+= JPEG="" LIBTURBOJPEG="@comment " post-install: @${ECHO_CMD} "libjpeg.so.8 libjpeg.so.8.0.2" \ > ${STAGEDIR}${PREFIX}/etc/libmap.d/${PORTNAME}.conf .endif .include Index: head/graphics/jpeg-turbo/files/patch-jchuff.c =================================================================== --- head/graphics/jpeg-turbo/files/patch-jchuff.c (nonexistent) +++ head/graphics/jpeg-turbo/files/patch-jchuff.c (revision 376692) @@ -0,0 +1,20 @@ +--- jchuff.c.orig 2013-09-28 03:23:49 UTC ++++ jchuff.c +@@ -391,7 +391,16 @@ dump_buffer (working_state * state) + #endif + + +-#define BUFSIZE (DCTSIZE2 * 2) ++/* Although it is exceedingly rare, it is possible for a Huffman-encoded ++ * coefficient block to be larger than the 128-byte unencoded block. For each ++ * of the 64 coefficients, PUT_BITS is invoked twice, and each invocation can ++ * theoretically store 16 bits (for a maximum of 2048 bits or 256 bytes per ++ * encoded block.) If, for instance, one artificially sets the AC ++ * coefficients to alternating values of 32767 and -32768 (using the JPEG ++ * scanning order-- 1, 8, 16, etc.), then this will produce an encoded block ++ * larger than 200 bytes. ++ */ ++#define BUFSIZE (DCTSIZE2 * 4) + + #define LOAD_BUFFER() { \ + if (state->free_in_buffer < BUFSIZE) { \ Property changes on: head/graphics/jpeg-turbo/files/patch-jchuff.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/libjpeg-turbo/Makefile =================================================================== --- head/graphics/libjpeg-turbo/Makefile (revision 376691) +++ head/graphics/libjpeg-turbo/Makefile (revision 376692) @@ -1,13 +1,13 @@ # Created by: Denis Podolskiy # $FreeBSD$ -PORTREVISION= 4 +PORTREVISION= 5 PKGNAMEPREFIX= lib COMMENT= SIMD-accelerated JPEG codec library, provides libTurboJPEG MASTERDIR= ${.CURDIR:H}/jpeg-turbo SLAVE_PORT= yes OPTIONS_EXCLUDE=DOCS EXAMPLES .include "${MASTERDIR}/Makefile"