kioslave/audiocd/plugins/lame/encoderlame.cpp looks for /usr/include/endian.h, whereas it needs to use /usr/include/machine/endian.h for BSD. Also, BSD does not define "__BYTE_ORDER", etc. I am attaching a patch that fixes these. Note that another area ("kscd") also has some endian issues like this, but it is turned off for this ebuild, so I did not touch this.
Created attachment 134051 [details, diff] kdemultimedia-kioslaves-3.5.8.ebuild
Created attachment 134053 [details, diff] files/kdemultimedia-kioslaves-3.5.8-freebsd.patch
Patch checked in.