Makefile 994 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-status-page-api
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  6. PKG_BUILD_DEPENDS := respondd
  7. include $(INCLUDE_DIR)/package.mk
  8. define Package/gluon-status-page-api
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. TITLE:=API for gluon-status-page
  12. DEPENDS:=+gluon-core +uhttpd +sse-multiplex +batman-adv-visdata +gluon-neighbour-info +gluon-respondd +libiwinfo +libjson-c
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. $(CP) ./src/* $(PKG_BUILD_DIR)/
  17. endef
  18. define Package/gluon-status-page-api/install
  19. $(INSTALL_DIR) $(1)/lib/gluon/status-page/providers
  20. $(INSTALL_BIN) $(PKG_BUILD_DIR)/neighbours-batadv $(1)/lib/gluon/status-page/providers/
  21. $(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
  22. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  23. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/status-page-api.so
  24. $(CP) ./files/* $(1)/
  25. endef
  26. $(eval $(call BuildPackage,gluon-status-page-api))