d3fb66adc9f5d3c60f358549eba7209396b09661
[openwrt/openwrt.git] / package / network / utils / rssileds / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rssileds
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13 PKG_LICNESE:=GPL-2.0+
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/rssileds
18 SECTION:=net
19 CATEGORY:=Network
20 TITLE:=RSSI real-time LED indicator
21 DEPENDS:=+libiwinfo
22 MAINTAINER:=Daniel Golle <dgolle@allnet.de>
23 endef
24
25 define Package/rssileds/description
26 A small process written in C to update the signal-strength indicator LEDs
27 endef
28
29 define Build/Configure
30 endef
31
32 TARGET_LDFLAGS += -liwinfo -luci -lubox -lnl-tiny
33
34 define Build/Compile
35 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall \
36 -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c $(TARGET_LDFLAGS)
37 endef
38
39 define Package/rssileds/install
40 $(INSTALL_DIR) $(1)/etc/init.d
41 $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,rssileds))