textproc/redland: Do not depend on Berkeley DB by default
Due to licensing issues, Redland only supports BDB up to version 5.3, a
version that was marked for removal from the ports tree on 2022-06-30.
A few different databases are supported for persistent storage, so add
MYSQL, PGSQL, and SQLITE as alternatives, and switch to SQLITE by
default.
While here, also:
- Patch to fix a build failure when MYSQL storage is chosen
- Pet portclippy/portfmt
- Hook in tests (1 of 17 tests fail, but upstream's bug tracker is broken)
Approved by: tcberner (kde)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42769