summaryrefslogtreecommitdiff
path: root/graphics/pngcheck
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-12-08 18:00:20 +0000
committerwiz <wiz@pkgsrc.org>2006-12-08 18:00:20 +0000
commitf977c18582225650dcd890818e8c196f28b4b49c (patch)
treea9c70b0be3988cae291453ef3d86090f4484a379 /graphics/pngcheck
parent63cc74feb764208d8fd603329a20c8a734bcb1a4 (diff)
downloadpkgsrc-f977c18582225650dcd890818e8c196f28b4b49c.tar.gz
Initial import of pngcheck-2.2.0:
pngcheck verifies the integrity of PNG, JNG, and MNG files (by checking the internal 32-bit CRCs [checksums] and decompressing the image data); it can optionally dump almost all of the chunk-level information in the image in human-readable form. For example, it can be used to print the basic statistics about an image (dimensions, bit depth, etc.); to list the color and transparency info in its palette (assuming it has one); or to extract the embedded text annotations. This is a command-line program with batch capabilities.
Diffstat (limited to 'graphics/pngcheck')
-rw-r--r--graphics/pngcheck/DESCR8
-rw-r--r--graphics/pngcheck/Makefile22
-rw-r--r--graphics/pngcheck/PLIST4
-rw-r--r--graphics/pngcheck/distinfo5
4 files changed, 39 insertions, 0 deletions
diff --git a/graphics/pngcheck/DESCR b/graphics/pngcheck/DESCR
new file mode 100644
index 00000000000..bc18d94c447
--- /dev/null
+++ b/graphics/pngcheck/DESCR
@@ -0,0 +1,8 @@
+pngcheck verifies the integrity of PNG, JNG, and MNG files (by
+checking the internal 32-bit CRCs [checksums] and decompressing
+the image data); it can optionally dump almost all of the chunk-level
+information in the image in human-readable form. For example, it
+can be used to print the basic statistics about an image (dimensions,
+bit depth, etc.); to list the color and transparency info in its
+palette (assuming it has one); or to extract the embedded text
+annotations. This is a command-line program with batch capabilities.
diff --git a/graphics/pngcheck/Makefile b/graphics/pngcheck/Makefile
new file mode 100644
index 00000000000..13d0b884f4c
--- /dev/null
+++ b/graphics/pngcheck/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/12/08 18:00:20 wiz Exp $
+#
+
+DISTNAME= pngcheck-2.2.0
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=png-mng/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.libpng.org/pub/png/apps/pngcheck.html
+COMMENT= Verify the integrity of PNG, JNG, and MNG files
+
+do-build:
+ cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -DUSE_ZLIB \
+ -o pngcheck pngcheck.c -lz
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pngcheck ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pngcheck
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pngcheck
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/pngcheck/PLIST b/graphics/pngcheck/PLIST
new file mode 100644
index 00000000000..eb0c80c8042
--- /dev/null
+++ b/graphics/pngcheck/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/12/08 18:00:20 wiz Exp $
+bin/pngcheck
+share/doc/pngcheck/README
+@dirrm share/doc/pngcheck
diff --git a/graphics/pngcheck/distinfo b/graphics/pngcheck/distinfo
new file mode 100644
index 00000000000..8cf09bf4b2a
--- /dev/null
+++ b/graphics/pngcheck/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/12/08 18:00:20 wiz Exp $
+
+SHA1 (pngcheck-2.2.0.tar.gz) = 543bd74fa978dc692de3e806a46f997d7fc683a1
+RMD160 (pngcheck-2.2.0.tar.gz) = 134b0401009e609d0a28a6f39e0a07b579d17470
+Size (pngcheck-2.2.0.tar.gz) = 57128 bytes