-UCI_MAKEOPTS = \
- $(TARGET_CONFIGURE_OPTS) \
- COPTS="$(TARGET_CFLAGS)" \
- DEBUG="$(DEBUG)" \
- VERSION="$(UCI_VERSION)" \
- CPPFLAGS="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \
- OS="Linux"
-
-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) $(UCI_MAKEOPTS)
- $(MAKE) -C $(PKG_BUILD_DIR)/lua $(UCI_MAKEOPTS)
-endef
+CMAKE_OPTIONS = \
+ -DLUAPATH=/usr/lib/lua \
+ $(if $(DEBUG),-DUCI_DEBUG=ON)