On 04/23/14 10:19, Eric Radman wrote:
Attached is a port for PNG compressor that uses a lossy algorithm that
I've found to be very effective.
The maintainer of this project mode a few modifications to make this
project easier to build on OpenBSD
(https://github.com/pornel/pngquant/issues/52)
Tested on i386 and ppc.
Couple of notes:
You'll need MAKE_FLAGS=CC="${CC}" since the port sets CC to gcc.
I'd rather see you use a do-install for the binary and man page (or make
your patch do the right thing) since neither are installed with the
proper group or mode.
I'm not 100% sure your patch-Makefile is correct. As it is, this
installs the debug version of pngquant: the CFLAGS?= line gets
overridden with the default CFLAGS. Did you mean to also make that
CFLAGS+= like the line below it? That will make it build the non-debug
pngquant. (Don't forget to remove the -O3 from the CFLAGSOPT line as
well). CUSTOMLIBPNG and CUSTOMZLIB can go away as well.
~Brian