File fixbuild.diff of Package pngcheck
Index: pngcheck-3.0.0/Makefile.unx
===================================================================
--- pngcheck-3.0.0.orig/Makefile.unx 2020-12-28 16:45:09.240554797 +0100
+++ pngcheck-3.0.0/Makefile.unx 2020-12-28 16:59:51.906204244 +0100
@@ -18,18 +18,12 @@
# macros --------------------------------------------------------------------
-ZPATH = ../zlib
-ZINC = -I$(ZPATH)
-ZLIB = -L$(ZPATH) -lz
-#ZLIB = $(ZPATH)/libz.a
-
-INCS = $(ZINC)
-LIBS = $(ZLIB)
+LIBS = -lz
CC = gcc
LD = gcc
RM = rm
-CFLAGS = -O -Wall $(INCS) -DUSE_ZLIB
+CFLAGS = -O -Wall -DUSE_ZLIB
# [note that -Wall is a gcc-specific compilation flag ("all warnings on")]
O = .o
E =