security/clamav: fix test failures.
It adds a few more fixes and improvements.
- Solves the bug, by adding a MSPACK option (enabled by default) and a build dependency on pkg-config.
- Makes massive use of options helpers and similar tools to improve Makefile's readability. In the rewriting I have not maintained the dependency of option LDAP on option MILTER and the two options are now indipendent: if this is bad, it as to be fixed on my patch. I avoided to do it directly because I am unsure it is needed.
- Uses now libpcre2 consistently (before the port could link to libpcre2 by mistake).
- Removes useless arguments about zlib in CONFIGURE_ARGS.
- Reorders variables consistently with the standard order.
- Cleans header.
- Updates pkg-plist and sort if alphabetically.
- Bump PORTREVISION, needed because of some fixes.
PR: 228468
Submitted by: phascolarctos@protonmail.ch
Reported by: gondim@bsdinfo.com.br