ndisgen is a script which produces a kernel module for wireless ndiswrapper-like interfaces; it requires /usr/share/misc/windrv_stub.c to compile successfully modules
/usr/share/misc/windrv_stub.c is provided by freebsd-usbin, at least here.