--- src/VBox/Additions/x11/vboxmouse/Makefile.kmk.orig 2019-01-25 18:24:30 UTC +++ src/VBox/Additions/x11/vboxmouse/Makefile.kmk @@ -227,10 +227,22 @@ endif # neq ($(KBUILD_TARGET),linux) ifdef VBOX_USE_SYSTEM_XORG_HEADERS - # As vboxmouse_drv is not needed at all for X.Org Server 1.7 and later do not - # build it in this case. - DLLS := $(filter-out vboxmouse_drv_%,$(DLLS)) - SYSMODS := $(filter-out vboxmouse_drv%,$(SYSMODS)) + ifeq ($(KBUILD_TARGET),freebsd) + DLLS += vboxmouse_drv_system + vboxmouse_drv_system_TEMPLATE = VBOXGUESTR3XORGMOD + vboxmouse_drv_system_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC + vboxmouse_drv_system_INCS := \ + /usr/local/include/pixman-1 \ + /usr/local/include/xorg \ + $(PATH_SUB_CURRENT) + vboxmouse_drv_system_SOURCES = \ + vboxmouse.c + else + # As vboxmouse_drv is not needed at all for X.Org Server 1.7 and later do not + # build it in this case. + DLLS := $(filter-out vboxmouse_drv_%,$(DLLS)) + SYSMODS := $(filter-out vboxmouse_drv%,$(SYSMODS)) + endif endif