Bug 181894 - graphics/pngquant: Update to version 2.0.0
Summary: graphics/pngquant: Update to version 2.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Kozlov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-06 19:10 UTC by tkato432
Modified: 2013-09-30 15:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1.89 KB, patch)
2013-09-06 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-09-06 19:10:06 UTC
- Update to version 2.0.0
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-06 19:10:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Bryan Drewery freebsd_committer freebsd_triage 2013-09-22 15:12:10 UTC
Responsible Changed
From-To: miwi->freebsd-ports-bugs

Back to the heap due to timeout
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-09-30 14:58:07 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"
Comment 4 Alex Kozlov freebsd_committer freebsd_triage 2013-09-30 14:59:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ak

I'll take it.
Comment 5 Alex Kozlov freebsd_committer freebsd_triage 2013-09-30 14:59:31 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!