ncurses: Fix path in ncursesw.pc
[librecmc/librecmc.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_RELEASE:=4
12 PKG_LICNESE:=GPL-2.0+
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/rssileds
17   SECTION:=net
18   CATEGORY:=Network
19   TITLE:=RSSI real-time LED indicator
20   DEPENDS:=+libiwinfo +libnl-tiny +libubox +libuci
21   MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
22 endef
23
24 define Package/rssileds/description
25   A small process written in C to update the signal-strength indicator LEDs
26 endef
27
28 define Build/Configure
29 endef
30
31 TARGET_LDFLAGS += -liwinfo -luci -lubox -lnl-tiny
32
33 define Build/Compile
34         $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall \
35                 -o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c $(TARGET_LDFLAGS)
36 endef
37
38 define Package/rssileds/install
39         $(INSTALL_DIR) $(1)/etc/init.d
40         $(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
41         $(INSTALL_DIR) $(1)/usr/sbin
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
43         $(INSTALL_DIR) $(1)/usr/libexec/led-trigger
44         $(INSTALL_BIN) ./files/rssi $(1)/usr/libexec/led-trigger/
45 endef
46
47 $(eval $(call BuildPackage,rssileds))