Date: Sun, 10 May 2009 15:33:16 +0200 (CEST) From: Stefan Bethke <stb@lassitu.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/134420: New port: graphics/pngnq tool for quantizing PNG images in RGBA format Message-ID: <200905101333.n4ADXGhJ080389@koef.zs64.net> Resent-Message-ID: <200905101410.n4AEA42b029238@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 134420 >Category: ports >Synopsis: New port: graphics/pngnq tool for quantizing PNG images in RGBA format >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 10 14:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Stefan Bethke >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: >Description: Pngnq is a tool for quantizing PNG images in RGBA format. Pngnq is an adaptation by Stuart Coyle of Greg Roelf's pnqquant using Anthony Dekker's neuquant algorithm. The neuquant algorithm uses a neural network to optimise the color map selection. This is fast and quite accurate, giving good results on many types of images. WWW: http://pngnq.sourceforge.net/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # graphics/pngnq # graphics/pngnq/distinfo # graphics/pngnq/Makefile # graphics/pngnq/files # graphics/pngnq/files/patch-pngcomp.c # graphics/pngnq/pkg-descr # echo c - graphics/pngnq mkdir -p graphics/pngnq > /dev/null 2>&1 echo x - graphics/pngnq/distinfo sed 's/^X//' >graphics/pngnq/distinfo << 'e8e24ff1c04b2840980242f41f2d6f2b' XMD5 (pngnq-0.5-src.tar.gz) = 14aff764008dfd55e816d3fe08636cb9 XSHA256 (pngnq-0.5-src.tar.gz) = c9f2f4239e07d23064176909cd59ef12d96573599a3fa29bed59fe554b769b92 XSIZE (pngnq-0.5-src.tar.gz) = 26115 e8e24ff1c04b2840980242f41f2d6f2b echo x - graphics/pngnq/Makefile sed 's/^X//' >graphics/pngnq/Makefile << '60aeeae8a53216b9f590369ba218890d' X# New ports collection makefile for: pngnq X# Date created: 10 May 2009 X# Whom: stb@lassitu.de X# X# $FreeBSD$ X# X XPORTNAME= pngnq XPORTVERSION= 0.5 XCATEGORIES= graphics XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= pngnq XDISTNAME= ${PORTNAME}-${PORTVERSION}-src X XMAINTAINER= stb@lassitu.de XCOMMENT= A tool for quantizing PNG images in RGBA format X XLIB_DEPENDS= png.5:${PORTSDIR}/graphics/png X XWRKSRC= ${WRKDIR}/${PORTVERSION} X XUSE_GMAKE= yes XMAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include -DVERSION='${PORTVERSION}'" \ X LDFLAGS="-lpng -lz -lm -L${LOCALBASE}/lib" X XPORTDOCS= README LICENSE README.pngcomp XPLIST_FILES= bin/pngcomp bin/pngnq X.if !defined(NO_INSTALL_MANPAGES) XMAN1= pngnq.1 X.endif X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/pngcomp ${PREFIX}/bin X ${INSTALL_PROGRAM} ${WRKSRC}/pngnq ${PREFIX}/bin X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for i in ${PORTDOCS} X ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} X.endfor X.endif X.if !defined(NO_INSTALL_MANPAGES) X ${INSTALL_MAN} ${WRKSRC}/pngnq.1 ${MAN1PREFIX}/man/man1 X.endif X X.include <bsd.port.mk> 60aeeae8a53216b9f590369ba218890d echo c - graphics/pngnq/files mkdir -p graphics/pngnq/files > /dev/null 2>&1 echo x - graphics/pngnq/files/patch-pngcomp.c sed 's/^X//' >graphics/pngnq/files/patch-pngcomp.c << 'd7860110bcfc8924cf5f90bc8d055c4b' X--- pngcomp.c.orig 2007-11-12 13:59:38.000000000 +0100 X+++ pngcomp.c 2009-05-10 15:07:38.000000000 +0200 X@@ -41,6 +41,7 @@ X #include <string.h> X #include <math.h> X #include <ctype.h> X+#include <unistd.h> X X #include "png.h" X #include "rwpng.h" d7860110bcfc8924cf5f90bc8d055c4b echo x - graphics/pngnq/pkg-descr sed 's/^X//' >graphics/pngnq/pkg-descr << 'a71fc0db26f8302c6c916b402b38f9d5' XPngnq is a tool for quantizing PNG images in RGBA format. X XPngnq is an adaptation by Stuart Coyle of Greg Roelf's pnqquant using XAnthony Dekker's neuquant algorithm. X XThe neuquant algorithm uses a neural network to optimise the color map Xselection. This is fast and quite accurate, giving good results on many Xtypes of images. X XWWW: http://pngnq.sourceforge.net/ a71fc0db26f8302c6c916b402b38f9d5 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905101333.n4ADXGhJ080389>