diff options
-rw-r--r-- | graphics/pngquant/Makefile | 30 | ||||
-rw-r--r-- | graphics/pngquant/distinfo | 4 |
2 files changed, 15 insertions, 19 deletions
diff --git a/graphics/pngquant/Makefile b/graphics/pngquant/Makefile index 6ccd140b97f7..97c5bfd00521 100644 --- a/graphics/pngquant/Makefile +++ b/graphics/pngquant/Makefile @@ -1,13 +1,8 @@ -# New ports collection makefile for: pngcquant -# Date created: Fri 08 Feb 2002 -# Whom: Alex Hayward <xelah@xelah.com> -# +# Created by: Alex Hayward <xelah@xelah.com> # $FreeBSD$ -# PORTNAME= pngquant -PORTVERSION= 1.7.2 -PORTREVISION= 1 +PORTVERSION= 1.8.1 DISTVERSIONSUFFIX= -src CATEGORIES= graphics MASTER_SITES= http://pngquant.org/ @@ -20,25 +15,26 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT LIB_DEPENDS= png15:${PORTSDIR}/graphics/png -OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP SSE2 DEBUG DOCS -OPENMP_DESC= Enable OpenMP support -SSE2_DESC= Enable x86 SSE2 optimization +OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP DEBUG DOCS +OPTIONS_DEFINE_i386= SSE -NO_WRKSUBDIR= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_BZIP2= yes USE_CSTD= c99 -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +USE_GMAKE= yes +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" MAKE_JOBS_SAFE= yes -CFLAGS+= `libpng-config --I_opts` -LDFLAGS+= `libpng-config --ldflags` +CPPFLAGS+= $$(libpng-config --I_opts) +LDFLAGS+= $$(libpng-config --ldflags) -lz -lm MAN1= pngquant.1 PORTDOCS= CHANGELOG README.md PLIST_FILES= bin/pngquant -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if empty(PORT_OPTIONS:MDEBUG) CFLAGS+= -DNDEBUG @@ -56,7 +52,7 @@ LDFLAGS+= ${PTHREAD_LIBS} -lgomp .endif # SSE2 support is always enabled on amd64 -.if ${PORT_OPTIONS:MSSE2} && ${ARCH} == "i386" +.if ${PORT_OPTIONS:MSSE} CFLAGS+= -DUSE_SSE=1 -msse2 .endif @@ -69,4 +65,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/graphics/pngquant/distinfo b/graphics/pngquant/distinfo index 40912357367f..5f3c92c81e82 100644 --- a/graphics/pngquant/distinfo +++ b/graphics/pngquant/distinfo @@ -1,2 +1,2 @@ -SHA256 (pngquant-1.7.2-src.tar.bz2) = 4e8b3378aeb573ed092f555483cdbbec94c5d5d19e709d8b338b2026b2e9a2bc -SIZE (pngquant-1.7.2-src.tar.bz2) = 27223 +SHA256 (pngquant-1.8.1-src.tar.bz2) = 4fa4bb620913328d7bee1c45e1f3a241b3a6115d514b407dd110673b1d552c94 +SIZE (pngquant-1.8.1-src.tar.bz2) = 31605 |