Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2011-2012 Daniel Golle <dgolle@allnet.de>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rssileds
  9. PKG_VERSION:=0.2
  10. PKG_RELEASE:=1
  11. PKG_LICNESE:=GPL-2.0+
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/rssileds
  14. SECTION:=net
  15. CATEGORY:=Network
  16. TITLE:=RSSI real-time LED indicator
  17. DEPENDS:=+libiwinfo
  18. MAINTAINER:=Daniel Golle <dgolle@allnet.de>
  19. endef
  20. define Package/rssileds/description
  21. A small process written in C to update the signal-strength indicator LEDs
  22. endef
  23. define Build/Prepare
  24. mkdir -p $(PKG_BUILD_DIR)
  25. $(CP) ./src/* $(PKG_BUILD_DIR)/
  26. endef
  27. define Build/Configure
  28. endef
  29. define Build/Compile
  30. $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
  31. -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
  32. endef
  33. define Package/rssileds/install
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
  38. endef
  39. $(eval $(call BuildPackage,rssileds))