FreeBSD is one of the systems on which KDE software gets tested.
We use a custom ports tree for the packages. At the moment it is the libinput branch of freebsd-ports-kde.
The packages are built/uploaded using this script.