[libiwinfo] fix typo in Makefile
[project/luci.git] / contrib / package / iwinfo / Makefile
1 #
2 # Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
3 #
4 # This is free software, licensed under the GPL 2 license.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=libiwinfo
10 PKG_RELEASE:=1
11
12 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
13
14 include $(INCLUDE_DIR)/package.mk
15
16
17 define Package/libiwinfo
18 SECTION:=luci
19 CATEGORY:=LuCI
20 SUBMENU:=Libraries
21 TITLE:=Generalized Wireless Information Library (iwinfo)
22 DEPENDS:=+libnl-tiny +liblua +lua
23 endef
24
25 define Package/libiwinfo/description
26 Wireless information library with consistent interface for proprietary Broadcom,
27 madwifi, nl80211 and wext driver interfaces.
28 endef
29
30 define Build/Prepare
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
33 endef
34
35 define Build/Configure
36 endef
37
38 TARGET_CFLAGS += \
39 -I$(STAGING_DIR)/usr/include \
40 -I$(STAGING_DIR)/usr/include/libnl-tiny
41
42 MAKE_FLAGS += \
43 FPIC="$(FPIC)" \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 LDFLAGS="$(TARGET_LDFLAGS)"
46
47 define Package/libiwinfo/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.lua $(1)/usr/bin/iwinfo
50 $(INSTALL_DIR) $(1)/usr/lib/lua
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
52 endef
53
54 $(eval $(call BuildPackage,libiwinfo))
55