freebsd-ports/graphics/pngquant/Makefile
Alex Kozlov db72d16f3d - Update to 2.9.0
- Remove MAKE_ARGS, CPPFLAGS, LDFLAGS - handled by configure
- Use configure to handle DEBUG option
- Add description for OPTIMIZED_FLAGS
- Disable OPENMP option for now - impossible to use without significant
  manual intervention on 10.x-11.x (needs devel/llvm39 or modern gcc)
- Use configure to handle SSE option (only provided on i386/amd64, enabled by default on amd64)
- Conditionally install DOCS

PR:	217987
Submitted by:	Anton Yuzhaninov <citrin+pr@citrin.ru> (except OPENMP stuff)
2017-03-22 22:50:16 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Alex Hayward <xelah@xelah.com>
# $FreeBSD$
PORTNAME= pngquant
PORTVERSION= 2.9.0
DISTVERSIONSUFFIX= -src
CATEGORIES= graphics
MASTER_SITES= http://pngquant.org/
MAINTAINER= ak@FreeBSD.org
COMMENT= Converts 32-bit RGBA PNGs into 8-bit RGBA-palette PNGs
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libpng.so:graphics/png
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= gmake pkgconfig
HAS_CONFIGURE= yes
PORTDOCS= CHANGELOG README.md
PLIST_FILES= bin/pngquant \
man/man1/pngquant.1.gz
OPTIONS_DEFINE= OPTIMIZED_FLAGS LCMS2 DEBUG DOCS
OPTIONS_DEFINE_i386= SSE
OPTIONS_DEFINE_amd64= SSE
LCMS2_DESC= Support for ICC profiles via LCMS library
OPTIMIZED_FLAGS_DESC= ${OPTIMIZED_CFLAGS_DESC}
OPTIONS_DEFAULT_amd64= SSE
DEBUG_CONFIGURE_ON= --enable-debug
LCMS2_CONFIGURE_WITH= lcms2
LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
OPTIMIZED_FLAGS_CFLAGS= -O3 -fstrict-aliasing \
-ffast-math -funroll-loops -fomit-frame-pointer \
-fexpensive-optimizations -ffinite-math-only \
-funsafe-loop-optimizations -ftree-vectorize
SSE_CONFIGURE_ENABLE=sse
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pngquant.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>