diff --git a/package/motion/motion.mk b/package/motion/motion.mk index f3815e37a4..95465fb2a3 100644 --- a/package/motion/motion.mk +++ b/package/motion/motion.mk @@ -14,5 +14,12 @@ define MOTION_INSTALL_TARGET_CMDS cp $(@D)/motion $(TARGET_DIR)/usr/bin/motion endef +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y) +MOTION_DEPENDENCIES += rpi-userland +MOTION_CONF_OPTS += \ + --with-mmal-include=$(STAGING_DIR)/usr/include \ + --with-mmal-lib=$(STAGING_DIR)/lib +endif + $(eval $(autotools-package))