Index: head/graphics/mozjpeg/Makefile =================================================================== --- head/graphics/mozjpeg/Makefile (revision 396858) +++ head/graphics/mozjpeg/Makefile (revision 396859) @@ -1,52 +1,53 @@ # Created by: Horia Racoviceanu # $FreeBSD$ PORTNAME= mozjpeg PORTVERSION= 3.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= horia@racoviceanu.com COMMENT= Advanced JPEG encoder for the Web LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt USE_GITHUB= yes GH_ACCOUNT= mozilla USES= autoreconf libtool pkgconfig USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME} GNU_CONFIGURE= yes CONFIGURE_ARGS= --docdir=${PREFIX}/share/doc/${PORTNAME} \ --includedir=${PREFIX}/include/${PORTNAME} \ --libdir=${PREFIX}/lib/${PORTNAME} \ --with-jpeg8 \ --disable-static INSTALL_TARGET= install-strip PLIST_SUB= PORTNAME=${PORTNAME} PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES SIMD TURBOJPEG OPTIONS_DEFAULT=SIMD TURBOJPEG OPTIONS_SUB= yes SIMD_DESC= Include SIMD extensions TURBOJPEG_DESC= Include the TurboJPEG wrapper library and associated tests SIMD_CONFIGURE_WITH= simd SIMD_BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm TURBOJPEG_CONFIGURE_WITH= turbojpeg post-patch: @${REINPLACE_CMD} -e '/^docdir/s|=.*|= ${DOCSDIR}|; \ /^exampledir/s|=.*|= ${EXAMPLESDIR}|' \ ${WRKSRC}/Makefile.am post-install: (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include Index: head/graphics/mozjpeg/files/patch-jcdctmgr.c =================================================================== --- head/graphics/mozjpeg/files/patch-jcdctmgr.c (nonexistent) +++ head/graphics/mozjpeg/files/patch-jcdctmgr.c (revision 396859) @@ -0,0 +1,41 @@ +--- jcdctmgr.c.orig 2015-05-18 14:28:09 UTC ++++ jcdctmgr.c +@@ -6,7 +6,7 @@ + * libjpeg-turbo Modifications: + * Copyright (C) 1999-2006, MIYASAKA Masaru. + * Copyright 2009 Pierre Ossman for Cendio AB +- * Copyright (C) 2011, 2014 D. R. Commander ++ * Copyright (C) 2011, 2014-2015 D. R. Commander + * mozjpeg Modifications: + * Copyright (C) 2014, Mozilla Corporation. + * For conditions of distribution and use, see the accompanying README file. +@@ -185,6 +185,19 @@ compute_reciprocal (UINT16 divisor, DCTE + UDCTELEM c; + int b, r; + ++ if (divisor == 1) { ++ /* divisor == 1 means unquantized, so these reciprocal/correction/shift ++ * values will cause the C quantization algorithm to act like the ++ * identity function. Since only the C quantization algorithm is used in ++ * these cases, the scale value is irrelevant. ++ */ ++ dtbl[DCTSIZE2 * 0] = (DCTELEM) 1; /* reciprocal */ ++ dtbl[DCTSIZE2 * 1] = (DCTELEM) 0; /* correction */ ++ dtbl[DCTSIZE2 * 2] = (DCTELEM) 1; /* scale */ ++ dtbl[DCTSIZE2 * 3] = (DCTELEM) (-sizeof(DCTELEM) * 8); /* shift */ ++ return 0; ++ } ++ + b = flss(divisor) - 1; + r = sizeof(DCTELEM) * 8 + b; + +@@ -589,7 +602,8 @@ quantize (JCOEFPTR coef_block, DCTELEM * + + #if BITS_IN_JSAMPLE == 8 + +- UDCTELEM recip, corr, shift; ++ UDCTELEM recip, corr; ++ int shift; + UDCTELEM2 product; + + for (i = 0; i < DCTSIZE2; i++) { Property changes on: head/graphics/mozjpeg/files/patch-jcdctmgr.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