=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for pngquant-2.12.0-src.tar.gz
=> Checksum RMD160 OK for pngquant-2.12.0-src.tar.gz
=> Checksum SHA512 OK for pngquant-2.12.0-src.tar.gz
===> Installing dependencies for pngquant-2.12.0
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.4.1nb1
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency libimagequant>=2.8.2: found libimagequant-2.12.1
=> Full dependency png>=1.6.0nb1: found png-1.6.35
=> Full dependency lcms2>=2.2: found lcms2-2.8
===> Overriding tools for pngquant-2.12.0
===> Extracting for pngquant-2.12.0
===> Patching for pngquant-2.12.0
=> Applying pkgsrc patches for pngquant-2.12.0
=> Verifying /data/pkgsrc/graphics/pngquant/patches/patch-configure
=> Applying pkgsrc patch /data/pkgsrc/graphics/pngquant/patches/patch-configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure,v 1.1 2018/06/24 12:00:22 fhajny Exp $
|
|Add support for dynamic libimagequant lookup and linking.
|
|--- configure.orig	2018-06-03 14:42:43.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 221.
Hunk #2 succeeded at 398.
done
===> Creating toolchain wrappers for pngquant-2.12.0
===> Configuring for pngquant-2.12.0
=> Checking for portability problems in extracted files
./configure: 8: Syntax error: Word "--quiet" unexpected (expecting ")")
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/graphics/pngquant
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/graphics/pngquant