Upgrade iw to stable 0.9.5
[openwrt/svn-archive/archive.git] / package / iw / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=iw
12 PKG_VERSION:=0.9.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/
17 PKG_BUILD_DEPENDS:=mac80211 libnl
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/iw
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=cfg80211 interface configuration utility
25 URL:=http://wireless.kernel.org/en/users/Documentation/iw
26 DEPENDS:=@!TARGET_avr32 @!TARGET_etrax +libnl
27 endef
28
29 define Build/Configure
30 $(CP) $(PKG_BUILD_DIR)/defconfig $(PKG_BUILD_DIR)/.config
31 endef
32
33 MAKE_FLAGS += \
34 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl -I$(STAGING_DIR)/usr/include" \
35 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lnl"
36
37 ifneq ($(CONFIG_LINUX_2_6),)
38 define Package/iw/install
39 $(INSTALL_DIR) $(1)/usr/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
41 endef
42 endif
43
44 $(eval $(call BuildPackage,iw))