source: trunk/package/iw/Makefile @ 9637

Last change on this file since 9637 was 9637, checked in by nbd, 8 years ago

add iw utility (untested)

File size: 1.2 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=iw
12PKG_REV:=11b24c28b802bae2abda8f46d457df60fa602594
13PKG_VERSION:=20071130_$(PKG_REV)
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://git.sipsolutions.net/iw.git
18PKG_SOURCE_PROTO:=git
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE_VERSION:=$(PKG_REV)
21PKG_BUILD_DEPENDS:=mac80211 libnl
22
23include $(INCLUDE_DIR)/package.mk
24
25define 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
31endef
32
33define Build/Configure
34        $(CP) $(PKG_BUILD_DIR)/defconfig $(PKG_BUILD_DIR)/.config
35endef
36
37MAKE_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
41define Package/iw/install
42        $(INSTALL_DIR) $(1)/usr/sbin
43        $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
44endef
45
46$(eval $(call BuildPackage,iw))
Note: See TracBrowser for help on using the repository browser.