Makefile 993 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 Build/Compile
  18. $(call Build/Compile/Default)
  19. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  20. endef
  21. define Package/gluon-mesh-batman-adv-core/install
  22. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  23. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  24. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-batman-adv-core.so
  25. endef
  26. define Package/gluon-mesh-batman-adv-core/postinst
  27. #!/bin/sh
  28. $(call GluonCheckSite,check_site.lua)
  29. endef
  30. $(eval $(call BuildPackage,gluon-mesh-batman-adv-core))