2015-04-23 13:11:11 +02:00
|
|
|
# Created by: Thomas Hurst <tom@hur.st>
|
2003-07-24 00:04:26 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= optipng
|
2017-02-16 22:24:21 +01:00
|
|
|
PORTVERSION= 0.7.6
|
2003-07-24 00:04:26 +02:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION}
|
2003-07-24 00:04:26 +02:00
|
|
|
|
2009-01-19 21:44:24 +01:00
|
|
|
MAINTAINER= tom@hur.st
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= Optimizer for PNG files
|
2003-07-24 00:04:26 +02:00
|
|
|
|
2013-05-18 22:35:07 +02:00
|
|
|
LICENSE= ZLIB
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
2012-06-29 08:33:22 +02:00
|
|
|
OPTIONS_DEFINE= BUNDLED_LIBPNG BUNDLED_ZLIB
|
|
|
|
|
2015-04-23 13:11:11 +02:00
|
|
|
BUNDLED_LIBPNG_DESC= Use bundled libpng
|
|
|
|
BUNDLED_LIBPNG_CONFIGURE_OFF= --with-system-libpng
|
|
|
|
BUNDLED_LIBPNG_CONFIGURE_ON= --without-system-libpng
|
2016-04-01 16:00:51 +02:00
|
|
|
BUNDLED_LIBPNG_LIB_DEPENDS_OFF= libpng.so:graphics/png
|
2017-02-16 22:24:21 +01:00
|
|
|
BUNDLED_LIBPNG_USES_OFF= localbase:ldflags
|
2006-08-25 21:20:43 +02:00
|
|
|
|
2015-04-23 13:11:11 +02:00
|
|
|
BUNDLED_ZLIB_DESC= Use bundled zlib
|
|
|
|
BUNDLED_ZLIB_CONFIGURE_OFF= --with-system-zlib
|
|
|
|
BUNDLED_ZLIB_CONFIGURE_ON= --without-system-zlib
|
|
|
|
|
|
|
|
USES= gmake
|
2011-12-29 15:07:57 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2015-04-23 13:11:11 +02:00
|
|
|
|
2014-03-29 15:02:29 +01:00
|
|
|
PLIST_FILES= bin/optipng man/man1/optipng.1.gz
|
2012-06-29 08:33:22 +02:00
|
|
|
PORTDOCS= history.txt optipng.man.html optipng.man.pdf optipng.man.txt \
|
|
|
|
png_optimization.html todo.txt
|
2009-01-19 21:44:24 +01:00
|
|
|
|
2003-07-24 00:04:26 +02:00
|
|
|
do-install:
|
2014-03-29 15:02:29 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
2003-07-24 00:04:26 +02:00
|
|
|
|
2014-03-29 15:02:29 +01:00
|
|
|
${INSTALL} -d ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/
|
2003-07-24 00:04:26 +02:00
|
|
|
|
2011-12-29 15:07:57 +01:00
|
|
|
.include <bsd.port.mk>
|