sys/inotify.h was added to FreeBSD base in 15.0; the new osquery/events/freebsd/inotify backend therefore fails to build on 14.x. Pull in devel/libinotify and link -linotify when OSVERSION < 1500000, which provides the missing header and inotify(2) shim.
While here, reorder USE_RC_SUBR, CMAKE_ARGS/CMAKE_OFF and EXTRA_PATCHES, and re-sort BUILD_DEPENDS/LIB_DEPENDS, to satisfy portclippy/portfmt.