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@
This commit is contained in:
lteo 2013-10-06 18:43:42 +00:00
parent cbfde9cde2
commit 9c7890efb5
4 changed files with 38 additions and 0 deletions

29
graphics/optipng/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $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>

View File

@ -0,0 +1,2 @@
SHA256 (optipng-0.7.4.tar.gz) = UgtdWpQF29xckF3Qz/hyEeacTtIFl0QDdRDmE/6CN/8=
SIZE (optipng-0.7.4.tar.gz) = 1613916

View File

@ -0,0 +1,4 @@
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.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/10/06 18:43:42 lteo Exp $
@bin bin/optipng
@man man/man1/optipng.1