aboutsummaryrefslogtreecommitdiff
path: root/graphics/pngquant/Makefile
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2016-11-12 15:50:51 +0000
committerAlex Kozlov <ak@FreeBSD.org>2016-11-12 15:50:51 +0000
commitd1f29105129e11eb3f3657bf2651504dd5834379 (patch)
treef8d8b561ecab7d22130461f31d8e607315a08b62 /graphics/pngquant/Makefile
parent877b7e79e3b741e43904100ebf18dd64f5c791af (diff)
downloadports-d1f29105129e11eb3f3657bf2651504dd5834379.tar.gz
ports-d1f29105129e11eb3f3657bf2651504dd5834379.zip
Notes
Diffstat (limited to 'graphics/pngquant/Makefile')
-rw-r--r--graphics/pngquant/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/graphics/pngquant/Makefile b/graphics/pngquant/Makefile
index f8750ecf9572..af8afa9ba4f2 100644
--- a/graphics/pngquant/Makefile
+++ b/graphics/pngquant/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= pngquant
-PORTVERSION= 2.5.2
-PORTREVISION= 1
+PORTVERSION= 2.7.2
DISTVERSIONSUFFIX= -src
CATEGORIES= graphics
MASTER_SITES= http://pngquant.org/
@@ -11,14 +10,15 @@ MASTER_SITES= http://pngquant.org/
MAINTAINER= ak@FreeBSD.org
COMMENT= Converts 32-bit RGBA PNGs into 8-bit RGBA-palette PNGs
-LICENSE= BSD3CLAUSE
+LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libpng.so:graphics/png
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USES= gmake tar:bzip2
+USES= gmake pkgconfig
+HAS_CONFIGURE= yes
MAKE_ARGS+= CC="${CC}"
CPPFLAGS+= $$(libpng-config --I_opts)
@@ -28,8 +28,19 @@ PORTDOCS= CHANGELOG README.md
PLIST_FILES= bin/pngquant \
man/man1/pngquant.1.gz
-OPTIONS_DEFINE= OPTIMIZED_FLAGS OPENMP DEBUG DOCS
+OPTIONS_DEFINE= OPTIMIZED_FLAGS OPENMP LCMS2 DEBUG DOCS
OPTIONS_DEFINE_i386= SSE
+LCMS2_DESC= Support for ICC profiles via LCMS library
+
+DEBUG_CFLAGS_OFF= -DNDEBUG
+
+LCMS2_CONFIGURE_WITH= lcms2
+LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
+
+OPENMP_LIB_DEPENDS= libomp.so:devel/openmp
+OPENMP_CPPFLAGS= -I${LOCALBASE}/include
+OPENMP_CONFIGURE_ON= --with-openmp
+OPENMP_CONFIGURE_ENV= C_INCLUDE_PATH=${LOCALBASE}/include
OPTIMIZED_FLAGS_CFLAGS= -O3 -fearly-inlining -fstrict-aliasing \
-ffast-math -funroll-loops -fomit-frame-pointer \
@@ -39,11 +50,6 @@ OPTIMIZED_FLAGS_CFLAGS= -O3 -fearly-inlining -fstrict-aliasing \
# SSE2 support is always enabled on amd64
SSE_CFLAGS= -DUSE_SSE=1 -msse2
-OPENMP_CFLAGS= -fopenmp
-OPENMP_LDFLAGS= -lgomp -pthread
-
-DEBUG_CFLAGS_OFF= -DNDEBUG
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pngquant.1 ${STAGEDIR}${MANPREFIX}/man/man1