024dfde24e89f3d575b27042e68332bbbe77f366
[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_REV:=11b24c28b802bae2abda8f46d457df60fa602594
13 PKG_VERSION:=20071130_$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://git.sipsolutions.net/iw.git
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21 PKG_BUILD_DEPENDS:=mac80211 libnl
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/iw
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=cfg80211 interface configuration utility
29 URL:=http://git.sipsolutions.net/?p=iw.git
30 DEPENDS:=@!TARGET_avr32 @!TARGET_etrax +libnl
31 endef
32
33 define Build/Configure
34 $(CP) $(PKG_BUILD_DIR)/defconfig $(PKG_BUILD_DIR)/.config
35 endef
36
37 MAKE_FLAGS += \
38 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl -I$(STAGING_DIR)/usr/include" \
39 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lnl"
40
41 ifneq ($(CONFIG_LINUX_2_6_23),)
42 define Package/iw/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
45 endef
46 endif
47
48 $(eval $(call BuildPackage,iw))