ports/181894: graphics/pngquant: Update to version 2.0.0
KATO Tsuguru
tkato432 at yahoo.com
Fri Sep 6 18:10:07 UTC 2013
>Number: 181894
>Category: ports
>Synopsis: graphics/pngquant: Update to version 2.0.0
>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: Fri Sep 06 18:10:06 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list