add chaos_calmer branch
[15.05/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/Prepare
30         mkdir -p $(PKG_BUILD_DIR)
31         $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38         $(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
39                 -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
40 endef
41
42 define Package/rssileds/install
43         $(INSTALL_DIR) $(1)/etc/init.d
44         $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
45         $(INSTALL_DIR) $(1)/usr/sbin
46         $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,rssileds))