2003-07-24 00:04:26 +02:00
|
|
|
# New ports collection makefile for: optipng
|
|
|
|
# Date created: 09 July 2003
|
|
|
|
# Whom: Thomas Hurst <freaky@aagh.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= optipng
|
2010-04-05 22:02:28 +02:00
|
|
|
PORTVERSION= 0.6.4
|
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
|
2003-07-24 00:04:26 +02:00
|
|
|
COMMENT= An optimizer for PNG files
|
|
|
|
|
2009-01-19 21:44:24 +01:00
|
|
|
OPTIONS= BUNDLED_LIBPNG "Use bundled libpng" off \
|
|
|
|
BUNDLED_ZLIB "Use bundled zlib" off
|
2006-08-25 21:20:43 +02:00
|
|
|
|
2003-07-24 00:04:26 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2009-01-19 21:44:24 +01:00
|
|
|
MAKEFILE= scripts/unix.mak
|
2006-08-09 12:19:16 +02:00
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
PLIST_FILES= bin/optipng
|
|
|
|
MAN1= optipng.1
|
2009-01-19 21:44:24 +01:00
|
|
|
PORTDOCS= caveat.txt history.txt manual.html manual.pdf manual.txt \
|
|
|
|
png_optimization_guide.html thanks.html todo.txt
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= #
|
|
|
|
.ifndef(WITH_BUNDLED_LIBPNG)
|
|
|
|
CONFIGURE_ARGS+= --with-system-libpng
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
|
2009-01-19 21:44:24 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifndef(WITH_BUNDLED_ZLIB)
|
|
|
|
CONFIGURE_ARGS+= --with-system-zlib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
(cd ${WRKSRC} && ./configure ${CONFIGURE_ARGS})
|
2010-04-05 22:02:28 +02:00
|
|
|
${REINPLACE_CMD} -e 's|^INCS =.*|INCS = -I${LOCALBASE}/include|' \
|
|
|
|
${WRKSRC}/lib/pngxtern/scripts/unix.mak
|
2003-07-24 00:04:26 +02:00
|
|
|
|
|
|
|
do-install:
|
2006-08-09 12:19:16 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng ${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/optipng.1 ${MAN1PREFIX}/man/man1/
|
2003-07-24 00:04:26 +02:00
|
|
|
|
|
|
|
post-install:
|
2006-08-09 12:19:16 +02:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
${INSTALL} -d ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
|
2003-07-24 00:04:26 +02:00
|
|
|
.endif
|
|
|
|
|
2009-01-19 21:44:24 +01:00
|
|
|
.include <bsd.port.post.mk>
|