more cleanup
[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 TAR_OPTIONS += || true
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/wireless-tools
25 SECTION:=net
26 CATEGORY:=Base system
27 TITLE:=Tools for manipulating Linux Wireless Extensions
28 DESCRIPTION:=\
29 This package contains a collection of tools for configuring wireless \\\
30 adapters implementing the "Linux Wireless Extensions".
31 URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
32 endef
33
34 define Build/Compile
35 rm -rf $(PKG_INSTALL_DIR)
36 mkdir -p $(PKG_INSTALL_DIR)
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS) -I." \
40 libiw.so.28 iwmulticall
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 PREFIX="$(PKG_INSTALL_DIR)" \
43 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
44 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
45 install-iwmulticall
46 endef
47
48 define Build/InstallDev
49 mkdir -p $(STAGING_DIR)/usr/include
50 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
51 mkdir -p $(STAGING_DIR)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
53 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
54 endef
55
56 define Build/UninstallDev
57 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
58 $(STAGING_DIR)/usr/lib/libiw.so*
59 endef
60
61 define Package/wireless-tools/install
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
64 endef
65
66 $(eval $(call BuildPackage,wireless-tools))
This page took 0.043234 seconds and 5 git commands to generate.