new port: pngcheck

okay thfr@
This commit is contained in:
espie 2021-10-17 21:11:20 +00:00
parent d5c405c797
commit 6cb7e5911d
7 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/10/17 21:11:20 espie Exp $
COMMENT = check the integrity of PNG files
DISTNAME = pngcheck-3.0.3
CATEGORIES = graphics sysutils
HOMEPAGE = http://www.libpng.org/pub/png/apps/pngcheck.html
# MIT for pngcheck, GPL for extra utilities
PERMIT_PACKAGE = Yes
WANTLIB = c z
MASTER_SITES = http://www.libpng.org/pub/png/src/
NO_TEST = Yes
MAKE_FILE = Makefile.unx
# easy enough to use their Makefile for building
MAKE_FLAGS = ZLIB=-lz ZINC= CFLAGS="${CFLAGS}" CC=${CC} LD=${CC}
# but it has no install target
do-install:
cd ${WRKDIST}; \
for i in pngcheck pngsplit png-fix-IDAT-windowsize; \
do \
${INSTALL_PROGRAM} $$i ${PREFIX}/bin; \
if test -f gpl/$$i.1; then i=gpl/$$i; fi; \
${INSTALL_MAN} $$i.1 ${PREFIX}/man/man1; \
done
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pngcheck-3.0.3.tar.gz) = w2pEkWNK91H3eY6kITIWQvlZD6oDLsyw3V+0UzYJ3uY=
SIZE (pngcheck-3.0.3.tar.gz) = 63766

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-gpl_png-fix-IDAT-windowsize_1,v 1.1.1.1 2021/10/17 21:11:20 espie Exp $
Index: gpl/png-fix-IDAT-windowsize.1
--- gpl/png-fix-IDAT-windowsize.1.orig
+++ gpl/png-fix-IDAT-windowsize.1
@@ -1,6 +1,6 @@
.TH PNG-FIX-IDAT-WINDOWSIZE "1" "October 2020" "png-fix-IDAT-windowsize 1.0" "User Commands"
.SH NAME
-png-fix-IDAT-windowsize \- manual page for png-fix-IDAT-windowsize 1.0
+png-fix-IDAT-windowsize \- fix corrupt libpng 1.2.6 output
.SH SYNOPSIS
.B png\-fix\-IDAT\-windowsize
.RI [ options ]

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-gpl_pngsplit_1,v 1.1.1.1 2021/10/17 21:11:20 espie Exp $
Index: gpl/pngsplit.1
--- gpl/pngsplit.1.orig
+++ gpl/pngsplit.1
@@ -1,6 +1,6 @@
.TH PNGSPLIT "1" "October 2020" "pngsplit 1.0" "User Commands"
.SH NAME
-pngsplit \- manual page for pngsplit 1.0
+pngsplit \- split PNG/MNG/JNG into chunks
.SH SYNOPSIS
.B pngsplit
.RI [ options ]

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-pngcheck_1,v 1.1.1.1 2021/10/17 21:11:20 espie Exp $
Index: pngcheck.1
--- pngcheck.1.orig
+++ pngcheck.1
@@ -1,6 +1,6 @@
.TH PNGCHECK "1" "April 2021" "pngcheck 3.0.3" "User Commands"
.SH NAME
-pngcheck \- manual page for pngcheck 3.0.3
+pngcheck \- check PNG/JNG/MNG file integrity
.SH SYNOPSIS
.B pngcheck
.RI [ \-7cpqtv ]

View File

@ -0,0 +1,4 @@
pngcheck basically checks png files for corruption
png-fix-IDAT-windowsize repairs minor zlib header breakage
from an older libpng
pngsplit breaks a png into constituent

View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/10/17 21:11:20 espie Exp $
@bin bin/png-fix-IDAT-windowsize
@bin bin/pngcheck
@bin bin/pngsplit
@man man/man1/png-fix-IDAT-windowsize.1
@man man/man1/pngcheck.1
@man man/man1/pngsplit.1