Makefile 860 B

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-mesh-batman-adv-core
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. PKG_BUILD_DEPENDS := respondd
  6. include $(GLUONDIR)/include/package.mk
  7. define Package/gluon-mesh-batman-adv-core
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Support for batman-adv meshing (core)
  11. DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +firewall +libiwinfo
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. $(CP) ./src/* $(PKG_BUILD_DIR)/
  16. endef
  17. define Package/gluon-mesh-batman-adv-core/install
  18. $(CP) ./files/* $(1)/
  19. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  20. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-batman-adv-core.so
  21. endef
  22. define Package/gluon-mesh-batman-adv-core/postinst
  23. #!/bin/sh
  24. $(call GluonCheckSite,check_site.lua)
  25. endef
  26. $(eval $(call BuildPackage,gluon-mesh-batman-adv-core))