lteo 9c7890efb5 Import OptiPNG 0.7.4, from Kyle Isom.
OptiPNG is a PNG optimizer that recompresses image files to a smaller
size, without losing any information. This program also converts
external formats (BMP, GIF, PNM and TIFF) to optimized PNG, and performs
PNG integrity checks and corrections.

Tested by Kyle Isom (amd64 and sgi), bcallah@ and myself (loongson).
Help/feedback from abieber@, bcallah@, sthen@, and Dmitrij D. Czarkoff.

OK bcallah@
2013-10-06 18:43:42 +00:00

30 lines
714 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2013/10/06 18:43:42 lteo Exp $
COMMENT = lossless PNG optimizer
DISTNAME = optipng-0.7.4
CATEGORIES = graphics
HOMEPAGE = http://optipng.sourceforge.net/
MAINTAINER = Kyle Isom <kyle@tyrfingr.is>
# zlib
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m png z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=optipng/}
LIB_DEPENDS = graphics/png
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += -with-system-zlib -with-system-libpng
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${PREFIX}/man/man1
.include <bsd.port.mk>