Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_RELEASE:=4
  10. PKG_LICNESE:=GPL-2.0+
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/rssileds
  13. SECTION:=net
  14. CATEGORY:=Network
  15. TITLE:=RSSI real-time LED indicator
  16. DEPENDS:=+libiwinfo +libnl-tiny +libubox +libuci
  17. MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  18. endef
  19. define Package/rssileds/description
  20. A small process written in C to update the signal-strength indicator LEDs
  21. endef
  22. define Build/Configure
  23. endef
  24. TARGET_LDFLAGS += -liwinfo -luci -lubox -lnl-tiny
  25. define Build/Compile
  26. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall \
  27. -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c $(TARGET_LDFLAGS)
  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. $(INSTALL_DIR) $(1)/usr/libexec/led-trigger
  35. $(INSTALL_BIN) ./files/rssi $(1)/usr/libexec/led-trigger/
  36. endef
  37. $(eval $(call BuildPackage,rssileds))