2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://wireless.kernel.org
/download
/iw
/
16 PKG_MD5SUM
:=146ad14cdeb39fb88b21efdbb28787d1
18 include $(INCLUDE_DIR
)/package.mk
23 TITLE
:=cfg80211 interface configuration utility
24 URL
:=http
://wireless.kernel.org
/en
/users
/Documentation
/iw
25 DEPENDS
:= +libnl-tiny @
(!(TARGET_avr32||TARGET_etrax
)||BROKEN
)
28 define Build
/Configure
29 echo
"const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR
)/version.c
30 rm -f
$(PKG_BUILD_DIR
)/version.sh
31 touch
$(PKG_BUILD_DIR
)/version.sh
32 chmod
+x
$(PKG_BUILD_DIR
)/version.sh
36 -I
$(STAGING_DIR
)/usr
/include/libnl-tiny \
42 CFLAGS
="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
43 LDFLAGS
="$(TARGET_LDFLAGS)" \
44 NL1FOUND
="" NL2FOUND
=Y \
45 NLLIBNAME
="libnl-tiny" \
46 LIBS
="-lm -lnl-tiny" \
49 define Package
/iw
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/iw
$(1)/usr
/sbin
/
54 $(eval
$(call BuildPackage
,iw
))