reorder nas command line parameters (required for bridge operation)
[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 $(INCLUDE_DIR)/package.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 rm -rf $(PKG_INSTALL_DIR)
30 mkdir -p $(PKG_INSTALL_DIR)
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
33 libiw.so.28 iwmulticall
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 PREFIX="$(PKG_INSTALL_DIR)" \
36 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
37 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
38 install-iwmulticall
39 endef
40
41 define Build/InstallDev
42 mkdir -p $(STAGING_DIR)/usr/include
43 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
44 mkdir -p $(STAGING_DIR)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
46 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
47 endef
48
49 define Build/UninstallDev
50 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
51 $(STAGING_DIR)/usr/lib/libiw.so*
52 endef
53
54 define Package/wireless-tools/install
55 install -d -m0755 $(1)/usr/lib
56 install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
57 install -d -m0755 $(1)/usr/sbin
58 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,wireless-tools))
This page took 0.044176 seconds and 5 git commands to generate.