clean up handling of the root filesystem mount - remove broadcom specific junk from...
[openwrt.git] / package / wireless-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wireless-tools
6 PKG_VERSION:=28
7 PKG_RELEASE:=1
8
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
13 PKG_CAT:=zcat
14
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define Package/wireless-tools
20 SECTION:=base
21 CATEGORY:=Network
22 DEFAULT:=y
23 TITLE:=Tools for manipulating Linux Wireless Extensions
24 DESCRIPTION:=Tools for configuring Wireless Adapters implementing the "Wireless Extension"
25 URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
26 endef
27
28 define Build/Compile
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
31 libiw.so.28 iwmulticall
32 mkdir -p $(PKG_INSTALL_DIR)
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 PREFIX="$(PKG_INSTALL_DIR)" \
35 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
36 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
37 install-iwmulticall
38 endef
39
40 define Package/wireless-tools/install
41 install -d -m0755 $(1)/usr/lib
42 install -d -m0755 $(1)/usr/sbin
43 install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
44 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(STAGING_DIR)/usr/{lib,include}
49 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
50 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
51 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
52 endef
53
54 define Build/UninstallDev
55 rm -f $(STAGING_DIR)/usr/lib/libiw.*
56 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
57 endef
58
59 $(eval $(call BuildPackage,wireless-tools))
This page took 0.044672 seconds and 5 git commands to generate.