From tkato432@yahoo.com  Fri Sep  6 18:02:01 2013
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id B500F851
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri,  6 Sep 2013 18:01:36 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from omta02.auone-net.jp (mail-or2-f145.auone-net.jp [111.87.219.145])
	by mx1.freebsd.org (Postfix) with ESMTP id 88851231F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri,  6 Sep 2013 18:01:36 +0000 (UTC)
Received: from coppermine.my.domain (ZT030236.ppp.dion.ne.jp [59.128.30.236])
	by omta02.auone-net.jp (au one net mail) with ESMTP id BA0571560035
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat,  7 Sep 2013 03:01:34 +0900 (JST)
Message-Id: <20130907025103.d909597f60ba752bdbd05cdc@yahoo.com>
Date: Sat, 7 Sep 2013 02:51:03 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: graphics/pngquant: Update to version 2.0.0

>Number:         181894
>Category:       ports
>Synopsis:       graphics/pngquant: Update to version 2.0.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ak
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 06 18:10:06 UTC 2013
>Closed-Date:    Mon Sep 30 13:59:32 UTC 2013
>Last-Modified:  Mon Sep 30 14:00:00 UTC 2013
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 2.0.0

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/pngquant/Makefile graphics/pngquant/Makefile
--- /usr/ports/graphics/pngquant/Makefile	2013-09-05 01:47:10.000000000 +0900
+++ graphics/pngquant/Makefile	2013-09-07 00:00:00.000000000 +0900
@@ -2,7 +2,7 @@
 # $FreeBSD: head/graphics/pngquant/Makefile 324744 2013-08-14 22:35:50Z ak $
 
 PORTNAME=	pngquant
-PORTVERSION=	1.8.3
+PORTVERSION=	2.0.0
 DISTVERSIONSUFFIX=	-src
 CATEGORIES=	graphics
 MASTER_SITES=	http://pngquant.org/
@@ -21,13 +21,11 @@
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 USE_BZIP2=	yes
-USE_CSTD=	c99
-USE_GMAKE=	yes
-MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
-		LDFLAGS="${LDFLAGS}"
+USES=		gmake
+MAKE_ENV=	CFLAGSADD="${CPPFLAGS}"
 
 CPPFLAGS+=	$$(libpng-config --I_opts)
-LDFLAGS+=	$$(libpng-config --ldflags) -lz -lm
+LDFLAGS+=	$$(libpng-config --ldflags)
 
 MAN1=		pngquant.1
 PORTDOCS=	CHANGELOG README.md
@@ -46,8 +44,8 @@
 .endif
 
 .if ${PORT_OPTIONS:MOPENMP}
-CFLAGS+=	${PTHREAD_CFLAGS} -fopenmp
-LDFLAGS+=	${PTHREAD_LIBS} -lgomp
+CFLAGS+=	-fopenmp
+LDFLAGS+=	-lgomp -pthread
 .endif
 
 # SSE2 support is always enabled on amd64
@@ -55,6 +53,10 @@
 CFLAGS+=	-DUSE_SSE=1 -msse2
 .endif
 
+post-patch:
+	@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
+		's|^CC|#CC|'
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/pngquant.1 ${MANPREFIX}/man/man1
diff -urN /usr/ports/graphics/pngquant/distinfo graphics/pngquant/distinfo
--- /usr/ports/graphics/pngquant/distinfo	2013-09-05 01:47:10.000000000 +0900
+++ graphics/pngquant/distinfo	2013-09-07 00:00:00.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (pngquant-1.8.3-src.tar.bz2) = e3d18b12ddf4ee159a696408b147d667674e52121f11660fc15ce3967dd053b9
-SIZE (pngquant-1.8.3-src.tar.bz2) = 32287
+SHA256 (pngquant-2.0.0-src.tar.bz2) = 449a4e1a7e6bf2e19b4dd3c91e8239c51cc651eeb5781c38cbaf7c852384039f
+SIZE (pngquant-2.0.0-src.tar.bz2) = 44613
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Sep 6 18:10:42 UTC 2013 
Responsible-Changed-Why:  
miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181894 
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Sun Sep 22 09:12:10 CDT 2013 
Responsible-Changed-Why:  
Back to the heap due to timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181894 
Responsible-Changed-From-To: freebsd-ports-bugs->ak 
Responsible-Changed-By: ak 
Responsible-Changed-When: Mon Sep 30 13:59:23 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181894 
State-Changed-From-To: open->closed 
State-Changed-By: ak 
State-Changed-When: Mon Sep 30 13:59:31 UTC 2013 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181894 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/181894: commit references a PR
Date: Mon, 30 Sep 2013 13:58:07 +0000 (UTC)

 Author: ak
 Date: Mon Sep 30 13:57:59 2013
 New Revision: 328787
 URL: http://svnweb.freebsd.org/changeset/ports/328787
 
 Log:
   - Update to 2.0.0 [1]
   - Convert to USES=gmake [1]
   - Convert to options helpers
   - Convert to new LIB_DEPENDS syntax
   - Support STAGEDIR
   - Take maintainership
   
   PR:	ports/181894 (based on) [1]
   Submitted by:	KATO Tsuguru <tkato432@yahoo.com> [1]
 
 Modified:
   head/graphics/pngquant/Makefile
   head/graphics/pngquant/distinfo
 
 Modified: head/graphics/pngquant/Makefile
 ==============================================================================
 --- head/graphics/pngquant/Makefile	Mon Sep 30 12:57:39 2013	(r328786)
 +++ head/graphics/pngquant/Makefile	Mon Sep 30 13:57:59 2013	(r328787)
 @@ -2,67 +2,56 @@
  # $FreeBSD$
  
  PORTNAME=	pngquant
 -PORTVERSION=	1.8.3
 +PORTVERSION=	2.0.0
  DISTVERSIONSUFFIX=	-src
  CATEGORIES=	graphics
  MASTER_SITES=	http://pngquant.org/
  
 -MAINTAINER=	ports@FreeBSD.org
 +MAINTAINER=	ak@FreeBSD.org
  COMMENT=	Converts 32-bit RGBA PNGs into 8-bit RGBA-palette PNGs
  
  LICENSE=	BSD
  LICENSE_FILE=	${WRKSRC}/COPYRIGHT
  
 -LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
 -
 -OPTIONS_DEFINE=	OPTIMIZED_CFLAGS OPENMP DEBUG DOCS
 -OPTIONS_DEFINE_i386=	SSE
 +LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
  
  WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
  
  USE_BZIP2=	yes
 -USE_CSTD=	c99
 -USE_GMAKE=	yes
 -MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
 -		LDFLAGS="${LDFLAGS}"
 +USES=	gmake
 +MAKE_ARGS+=	CC="${CC}"
  
  CPPFLAGS+=	$$(libpng-config --I_opts)
 -LDFLAGS+=	$$(libpng-config --ldflags) -lz -lm
 +LDFLAGS+=	$$(libpng-config --ldflags)
  
 -MAN1=		pngquant.1
  PORTDOCS=	CHANGELOG README.md
 -PLIST_FILES=	bin/pngquant
 +PLIST_FILES=	bin/pngquant \
 +				man/man1/pngquant.1.gz
  
 -NO_STAGE=	yes
 -.include <bsd.port.options.mk>
 +OPTIONS_DEFINE=	OPTIMIZED_FLAGS OPENMP DEBUG DOCS
 +OPTIONS_DEFINE_i386=	SSE
  
 -.if empty(PORT_OPTIONS:MDEBUG)
 -CFLAGS+=	-DNDEBUG
 -.endif
 +OPTIMIZED_FLAGS_CFLAGS=	-O3 -fearly-inlining -fstrict-aliasing \
 +		-ffast-math -funroll-loops -fomit-frame-pointer \
 +		-fexpensive-optimizations -ffinite-math-only \
 +		-funsafe-loop-optimizations -ftree-vectorize
  
 -.if ${PORT_OPTIONS:MOPTIMIZED_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
 +# SSE2 support is always enabled on amd64
 +SSE_CFLAGS=	-DUSE_SSE=1 -msse2
  
 -.if ${PORT_OPTIONS:MOPENMP}
 -CFLAGS+=	${PTHREAD_CFLAGS} -fopenmp
 -LDFLAGS+=	${PTHREAD_LIBS} -lgomp
 -.endif
 +OPENMP_CFLAGS=	-fopenmp
 +OPENMP_LDFLAGS=	-lgomp -pthread
  
 -# SSE2 support is always enabled on amd64
 -.if ${PORT_OPTIONS:MSSE}
 -CFLAGS+=	-DUSE_SSE=1 -msse2
 +.include <bsd.port.options.mk>
 +
 +.if empty(PORT_OPTIONS:MDEBUG)
 +CFLAGS+=	-DNDEBUG
  .endif
  
  do-install:
 -	${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${PREFIX}/bin
 -	${INSTALL_MAN} ${WRKSRC}/pngquant.1 ${MANPREFIX}/man/man1
 -.if ${PORT_OPTIONS:MDOCS}
 -	@${MKDIR} ${DOCSDIR}
 -	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
 -	${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
 -.endif
 +	${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${STAGEDIR}${PREFIX}/bin
 +	${INSTALL_MAN} ${WRKSRC}/pngquant.1 ${STAGEDIR}${MANPREFIX}/man/man1
 +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 +	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
  
  .include <bsd.port.mk>
 
 Modified: head/graphics/pngquant/distinfo
 ==============================================================================
 --- head/graphics/pngquant/distinfo	Mon Sep 30 12:57:39 2013	(r328786)
 +++ head/graphics/pngquant/distinfo	Mon Sep 30 13:57:59 2013	(r328787)
 @@ -1,2 +1,2 @@
 -SHA256 (pngquant-1.8.3-src.tar.bz2) = e3d18b12ddf4ee159a696408b147d667674e52121f11660fc15ce3967dd053b9
 -SIZE (pngquant-1.8.3-src.tar.bz2) = 32287
 +SHA256 (pngquant-2.0.0-src.tar.bz2) = 449a4e1a7e6bf2e19b4dd3c91e8239c51cc651eeb5781c38cbaf7c852384039f
 +SIZE (pngquant-2.0.0-src.tar.bz2) = 44613
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
