3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:=wireless-tools
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
10 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
12 PKG_MD5SUM
:=599c94497f9c9073c7b052d3dcb7cd16
15 include $(TOPDIR
)/package
/rules.mk
17 define Package
/wireless-tools
21 TITLE
:=Tools for manipulating Linux Wireless Extensions
22 DESCRIPTION
:=Tools for configuring Wireless Adapters implementing the
"Wireless Extension"
23 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
27 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
28 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS) -I." \
29 libiw.so
.28 iwmulticall
30 mkdir
-p
$(PKG_INSTALL_DIR
)
31 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
32 PREFIX
="$(PKG_INSTALL_DIR)" \
33 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
34 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
38 define Package
/wireless-tools
/install
39 install -d
-m0755
$(1)/usr
/lib
40 install -d
-m0755
$(1)/usr
/sbin
41 install -m0755
$(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
42 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
45 install-dev
: $(PKG_BUILD_DIR
)/.built
46 mkdir
-p
$(STAGING_DIR
)/usr
/{lib
,include}
47 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
48 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
49 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
52 rm -f
$(STAGING_DIR
)/usr
/lib
/libiw.
*
53 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h