Fix gnu-efi producing broken binaries.
Needed to make fwupd-efi work.
Drop unused libefiboot dependency.
It's not needed since 2023.
Make fwupd work with native libefivar.
It's either native libefivar or the one from ports. Their API is incompatible. devel/efivar was needed for libefiboot, so it makes sense to not depend on it now, except that /usr/lib/libefivar can't be used if devel/efivar is installed due to -rpath. Linking to /usr/lib/libefivar.a as a workaround doesn't work, because it was not built with -fPIC.
Using devel/efivar requires different patches for fwupd and implementation of FreeBSD's ioctl() to deal with EFI variables in efivar. Both changes are available, but posting a simpler version first to get feedback about which approach is preferable.
Add patches to make uefi-capsules work on FreeBSD.
These will be sent to upstream which knows about FreeBSD, but which patches should be sent partially depends on which libefivar is going to be used in the end.
Questions to reviewers
Need to decide if the conflict with devel/efivar is acceptable or can be avoided.
Also, should bsdisks be added to the dependencies of fwupd? fwupd could be used without it, so maybe it should just be recommended.