c7b80f31d2a97a7bf39b883c2b2cb0275ec84af4
[openwrt.git] / package / wireless-tools / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wireless-tools
12 PKG_VERSION:=28
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
17 PKG_MD5SUM:=599c94497f9c9073c7b052d3dcb7cd16
18 PKG_CAT:=zcat
19 TAR_OPTIONS += || true
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/wireless-tools
27 SECTION:=net
28 CATEGORY:=Base system
29 TITLE:=Tools for manipulating Linux Wireless Extensions
30 DESCRIPTION:=\
31 This package contains a collection of tools for configuring wireless \\\
32 adapters implementing the "Linux Wireless Extensions".
33 URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
34 endef
35
36 define Build/Compile
37 rm -rf $(PKG_INSTALL_DIR)
38 mkdir -p $(PKG_INSTALL_DIR)
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS) -I." \
42 libiw.so.28 iwmulticall
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 PREFIX="$(PKG_INSTALL_DIR)" \
45 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
46 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
47 install-iwmulticall
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(STAGING_DIR)/usr/include
52 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
53 mkdir -p $(STAGING_DIR)/usr/lib
54 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
55 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
56 endef
57
58 define Build/UninstallDev
59 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
60 $(STAGING_DIR)/usr/lib/libiw.so*
61 endef
62
63 define Package/wireless-tools/install
64 $(INSTALL_DIR) $(1)/lib/wifi
65 $(INSTALL_DATA) ./files/wifi.sh $(1)/lib/wifi/generic.sh
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
68 $(INSTALL_DIR) $(1)/usr/sbin
69 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
70 endef
71
72 $(eval $(call BuildPackage,wireless-tools))
This page took 0.042276 seconds and 3 git commands to generate.