Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. TARGET_LDFLAGS += -liwinfo -luci -lubox -lnl-tiny
  26. define Build/Compile
  27. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall \
  28. -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c $(TARGET_LDFLAGS)
  29. endef
  30. define Package/rssileds/install
  31. $(INSTALL_DIR) $(1)/etc/init.d
  32. $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
  35. endef
  36. $(eval $(call BuildPackage,rssileds))