[package] iw: update to 0.9.9 (thanks to Hauke Mehrtens <hauke@hauke-m.de>)
[openwrt.git] / package / iw / Makefile
1 #
2 # Copyright (C) 2007-2009 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.9
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_MD5SUM:=fa79323a4dd181fdd3908990191d118d
18 PKG_BUILD_DEPENDS:=mac80211 libnl
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/iw
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=cfg80211 interface configuration utility
26 URL:=http://wireless.kernel.org/en/users/Documentation/iw
27 DEPENDS:=@!TARGET_avr32 @!TARGET_etrax +libnl
28 endef
29
30 define Build/Configure
31 echo "#define IW_VERSION \"$(PKG_VERSION)\"" > $(PKG_BUILD_DIR)/version.h
32 endef
33
34 MAKE_FLAGS += \
35 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl -I$(STAGING_DIR)/usr/include" \
36 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lnl"
37
38 ifneq ($(CONFIG_LINUX_2_6),)
39 define Package/iw/install
40 $(INSTALL_DIR) $(1)/usr/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
42 endef
43 endif
44
45 $(eval $(call BuildPackage,iw))
This page took 0.044008 seconds and 5 git commands to generate.