Created attachment 159920 [details] Build log with all parameters. Build failure, ate least with poudriere. Please, make it proper option on all samba-related ports. Samba could be used in small boxes, where Python API is useless ad Python port itself is a half of available system storage!
It's a bug in upstream, I've submitted https://bugzilla.samba.org/show_bug.cgi?id=11457 I don't want to make this option exposed, as samba4* heavily uses Python bindings for it's on runtime tools. So, letting people disable it by accident will open yet another can of worms. Your use case is quite specific and for it you can always put appropriate flag into /etc/make.conf. Keep in mind that samba36 is already deprecated by upstream also, so we are focusing on samba4x in general.
Really, typical router needs only nmbd to "link" several networks when here is no domain or AD or any other infrastructure, but only stand-alone servers (and clients). samba4x is too much for this simple task.
I believe that now you can build relevant packages without Python bindings