From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 12 18:40:13 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74EB21065697 for ; Thu, 12 Apr 2012 18:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4F2B18FC08 for ; Thu, 12 Apr 2012 18:40:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3CIeD5M019273 for ; Thu, 12 Apr 2012 18:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3CIeDn6019272; Thu, 12 Apr 2012 18:40:13 GMT (envelope-from gnats) Resent-Date: Thu, 12 Apr 2012 18:40:13 GMT Resent-Message-Id: <201204121840.q3CIeDn6019272@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09EC11065670 for ; Thu, 12 Apr 2012 18:31:31 +0000 (UTC) (envelope-from tkato432@yahoo.com) Received: from msa101lp.auone-net.jp (msa101lp.auone-net.jp [222.3.140.164]) by mx1.freebsd.org (Postfix) with ESMTP id AA1F28FC12 for ; Thu, 12 Apr 2012 18:31:30 +0000 (UTC) Received: from localhost.localdomain (ZT029113.ppp.dion.ne.jp [59.128.29.113]) by msa101lp.auone-net.jp (au one net msa) with ESMTP id 6CCE134034 for ; Fri, 13 Apr 2012 03:31:27 +0900 (JST) Message-Id: <20120413031618.6f21fb96.tkato432@yahoo.com> Date: Fri, 13 Apr 2012 03:16:18 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/166888: graphics/pngquant: Update to version 1.7.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2012 18:40:13 -0000 >Number: 166888 >Category: ports >Synopsis: graphics/pngquant: Update to version 1.7.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 12 18:40:13 UTC 2012 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p5 i386 >Organization: >Environment: >Description: - Update to version 1.7.2 Remove file: files/patch-rwpng.c >How-To-Repeat: >Fix: diff -urN /usr/ports/graphics/pngquant/Makefile graphics/pngquant/Makefile --- /usr/ports/graphics/pngquant/Makefile 2010-03-28 17:39:10.000000000 +0900 +++ graphics/pngquant/Makefile 2012-03-18 06:14:32.000000000 +0900 @@ -6,33 +6,66 @@ # PORTNAME= pngquant -PORTVERSION= 1.0 -PORTREVISION= 2 +PORTVERSION= 1.7.2 +DISTVERSIONSUFFIX= -src CATEGORIES= graphics -MASTER_SITES= SF/png-mng/${PORTNAME}/${PORTVERSION} -DISTNAME= ${PORTNAME}-${PORTVERSION}-src -EXTRACT_SUFX= .tgz +MASTER_SITES= http://pngquant.org/ MAINTAINER= ports@FreeBSD.org COMMENT= Converts 32-bit RGBA PNGs into 8-bit RGBA-palette PNGs +LICENSE= BSD +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +OPTIONS= OPTIMIZED_CFLAGS "Additional optimization" off \ + OPENMP "Enable OpenMP support" off \ + SSE2 "Enable x86 SSE2 optimization" off + +NO_WRKSUBDIR= yes + +USE_BZIP2= yes +USE_CSTD= c99 +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +MAKE_JOBS_SAFE= yes -MAKEFILE= Makefile.unx -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ - LDFLAGS="-lpng -lz -lm -L${LOCALBASE}/lib" +CFLAGS+= `libpng-config --I_opts` +LDFLAGS+= `libpng-config --ldflags` -PORTDOCS= CHANGELOG README +MAN1= pngquant.1 +PORTDOCS= CHANGELOG README.md PLIST_FILES= bin/pngquant +.include + +.if !defined(WITH_DEBUG) +CFLAGS+= -DNDEBUG +.endif + +.if defined(WITH_OPTIMIZED_CFLAGS) +CFLAGS+= -O3 -fearly-inlining -fstrict-aliasing -ffast-math \ + -funroll-loops -fomit-frame-pointer -fexpensive-optimizations \ + -ffinite-math-only -funsafe-loop-optimizations -ftree-vectorize +.endif + +.if defined(WITH_OPENMP) +CFLAGS+= ${PTHREAD_CFLAGS} -fopenmp +LDFLAGS+= ${PTHREAD_LIBS} -lgomp +.endif + +# SSE2 support is always enabled on amd64 +.if defined(WITH_SSE2) && ${ARCH} == "i386" +CFLAGS+= -DUSE_SSE=1 -msse2 +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/pngquant.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR} .endif -.include +.include diff -urN /usr/ports/graphics/pngquant/distinfo graphics/pngquant/distinfo --- /usr/ports/graphics/pngquant/distinfo 2011-07-04 02:05:18.000000000 +0900 +++ graphics/pngquant/distinfo 2012-03-17 13:51:29.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (pngquant-1.0-src.tgz) = 48e22dbab8412dcc04a5663135e1324045cd53a390d56c01f2878ab781a95fd3 -SIZE (pngquant-1.0-src.tgz) = 21060 +SHA256 (pngquant-1.7.2-src.tar.bz2) = 4e8b3378aeb573ed092f555483cdbbec94c5d5d19e709d8b338b2026b2e9a2bc +SIZE (pngquant-1.7.2-src.tar.bz2) = 27223 diff -urN /usr/ports/graphics/pngquant/files/patch-rwpng.c graphics/pngquant/files/patch-rwpng.c --- /usr/ports/graphics/pngquant/files/patch-rwpng.c 2010-03-29 22:38:08.000000000 +0900 +++ graphics/pngquant/files/patch-rwpng.c 1970-01-01 09:00:00.000000000 +0900 @@ -1,11 +0,0 @@ ---- rwpng.c.orig 2006-06-15 11:39:29.000000000 +0200 -+++ rwpng.c 2010-03-29 15:35:32.000000000 +0200 -@@ -77,7 +77,7 @@ - * have used slightly more general png_sig_cmp() function instead */ - - fread(sig, 1, 8, infile); -- if (!png_check_sig(sig, 8)) { -+ if (png_sig_cmp(sig, 0, 8)) { - mainprog_ptr->retval = 21; /* bad signature */ - return mainprog_ptr->retval; - } diff -urN /usr/ports/graphics/pngquant/pkg-descr graphics/pngquant/pkg-descr --- /usr/ports/graphics/pngquant/pkg-descr 2009-12-21 15:23:10.000000000 +0900 +++ graphics/pngquant/pkg-descr 2012-03-17 14:07:34.000000000 +0900 @@ -1,24 +1,17 @@ -The pngquant utility converts 32-bit RGBA PNGs to 8-bit RGBA-palette PNGs (or -fewer than 8 bits, if you want), via quantization and ordered or diffusion -(Floyd-Steinberg) dithering. You can also use it on RGB or even palette images -(for example, to further color-reduce them to 16 colors). It does: - - nice reduction of all PNG image types to 256-color (or smaller) palette - - automatic optimization of tRNS chunks - - batch conversion of multiple files (e.g., "pngquant 256 *.png") - - Unix-style command-line filtering (e.g., "... | pngquant 16 | ...") -It does still lack a few features: - - no ancillary chunk preservation (except gAMA) - - no preservation of significant-bits info after rescaling (sBIT chunk) - - no mapfile support - - no "native" handling of 16-bit-per-sample files or gray+alpha files - (all samples are truncated to 8 bits and all images are promoted - to RGBA before quantization) -By the way, be sure to check "before" and "after" file sizes, preferably with -pngcrush (http://pmt.sourceforge.net/pngcrush/); dithered palette images may -be four times smaller to begin with, but they do not compress nearly as well -as grayscale and truecolor images. Some images, such as Henri Sivonen's alpha -button (http://www.pp.htv.fi/hsivone1/css-test/bitmapstyle.html), can be made -smaller as full 32-bit RGBA images (4076 bytes in this case) than as either -FS-dithered palette (4550 bytes) or ordered-dither palette (4482 bytes) images. +pngquant is a command-line utility to quantize and dither 32-bit RGBA +PNGs down to 8-bit (or smaller) RGBA-palette PNGs, usually with a +significant reduction in file size (40-70% smaller than 24-bit PNGs). -WWW: http://www.libpng.org/pub/png/apps/pngquant.html +This unique type of PNG supports full alpha transparency and is +compatible with all modern web browsers, and has better fallback in IE6 +than 24-bit PNGs. + +Features: + - High-quality palette generation using modernized Median Cut + algorithm. + - Unique dithering algorithm that adds less noise to images than the + standard Floyd-Steinberg. + - Easy to integrate with shell scripts, GUIs and server-side software. + - Fast mode for processing large numbers of images. + +WWW: http://pngquant.org/ >Release-Note: >Audit-Trail: >Unformatted: