3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:=wireless-tools
8 PKG_MD5SUM
:=bf598d6ded79e9e6b9bc2dbeb8258f48
10 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
11 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,WIRELESS_TOOLS
,wireless-tools
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
25 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
26 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS) -I." \
28 mkdir
-p
$(PKG_INSTALL_DIR
)
29 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
30 PREFIX
="$(PKG_INSTALL_DIR)" \
31 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
32 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
33 install install-iwmulticall
36 $(IPKG_WIRELESS_TOOLS
):
37 mkdir
-p
$(IDIR_WIRELESS_TOOLS
)/usr
/lib
38 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libiw.so
.28 $(IDIR_WIRELESS_TOOLS
)/usr
/lib
/
39 mkdir
-p
$(IDIR_WIRELESS_TOOLS
)/usr
/sbin
40 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(IDIR_WIRELESS_TOOLS
)/usr
/sbin
/
41 $(RSTRIP
) $(IDIR_WIRELESS_TOOLS
)
42 $(IPKG_BUILD
) $(IDIR_WIRELESS_TOOLS
) $(PACKAGE_DIR
)
45 mkdir
-p
$(STAGING_DIR
)/usr
/{lib
,include}
46 cp
-a
$(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
47 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
48 cp
-a
$(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
51 rm -f
$(STAGING_DIR
)/usr
/lib
/libiw.
*
52 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h