[package] mac80211: fix compat-wireless-old md5sum
[openwrt.git] / package / wireless-tools / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=29
13 PKG_MINOR:=.pre21
14 PKG_RELEASE:=2
15
16 PKG_SOURCE:=wireless_tools.$(PKG_VERSION)$(PKG_MINOR).tar.gz
17 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
18 PKG_MD5SUM:=953774d6a34050bae4ef3bfa731f6653
19 TAR_OPTIONS += || true
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wireless-tools/Default
26 URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
27 endef
28
29 define Package/wireless-tools
30 $(call Package/wireless-tools/Default)
31 SECTION:=net
32 CATEGORY:=Base system
33 TITLE:=Tools for manipulating Linux Wireless Extensions
34 endef
35
36 define Package/wireless-tools/description
37 This package contains a collection of tools for configuring wireless
38 adapters implementing the "Linux Wireless Extensions".
39 endef
40
41 define Package/libiw
42 $(call Package/wireless-tools/Default)
43 SECTION:=libs
44 CATEGORY:=Libraries
45 TITLE:=Library for manipulating Linux Wireless Extensions
46 endef
47
48 define Package/libiw/description
49 This package contains a library for manipulating
50 "Linux Wireless Extensions".
51 endef
52
53 define Build/Compile
54 rm -rf $(PKG_INSTALL_DIR)
55 mkdir -p $(PKG_INSTALL_DIR)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 $(TARGET_CONFIGURE_OPTS) \
58 CFLAGS="$(TARGET_CFLAGS) -I." \
59 libiw.so.$(PKG_VERSION) iwmulticall
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 PREFIX="$(PKG_INSTALL_DIR)" \
62 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
63 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
64 install-iwmulticall
65 endef
66
67 define Build/InstallDev
68 mkdir -p $(1)/usr/include
69 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(1)/usr/include/
70 mkdir -p $(1)/usr/lib
71 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(1)/usr/lib/
72 ln -sf libiw.so.$(PKG_VERSION) $(1)/usr/lib/libiw.so
73 endef
74
75 define Package/wireless-tools/install
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iwconfig $(1)/usr/sbin/
78 ln -sf iwconfig $(1)/usr/sbin/iwgetid
79 ln -sf iwconfig $(1)/usr/sbin/iwlist
80 ln -sf iwconfig $(1)/usr/sbin/iwpriv
81 ln -sf iwconfig $(1)/usr/sbin/iwspy
82 endef
83
84 define Package/libiw/install
85 $(INSTALL_DIR) $(1)/usr/lib
86 $(CP) $(PKG_BUILD_DIR)/libiw.so.* $(1)/usr/lib/
87 endef
88
89 $(eval $(call BuildPackage,wireless-tools))
90 $(eval $(call BuildPackage,libiw))
This page took 0.069164 seconds and 5 git commands to generate.