Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/Configure
  24. endef
  25. define Build/Compile
  26. $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
  27. -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
  28. endef
  29. define Package/rssileds/install
  30. $(INSTALL_DIR) $(1)/etc/init.d
  31. $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
  34. endef
  35. $(eval $(call BuildPackage,rssileds))