source: trunk/package/wireless-tools/Makefile @ 6580

Last change on this file since 6580 was 6580, checked in by nbd, 10 years ago

add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if kernel.mk is included, BUILD_DIR otherwise)

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=wireless-tools
12PKG_VERSION:=28
13PKG_RELEASE:=1
14
15PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
17PKG_MD5SUM:=599c94497f9c9073c7b052d3dcb7cd16
18PKG_CAT:=zcat
19TAR_OPTIONS += || true
20
21PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/wireless-tools
26  SECTION:=net
27  CATEGORY:=Base system
28  TITLE:=Tools for manipulating Linux Wireless Extensions
29  DESCRIPTION:=\
30        This package contains a collection of tools for configuring wireless \\\
31        adapters implementing the "Linux Wireless Extensions".
32  URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
33endef
34
35define Build/Compile
36        rm -rf $(PKG_INSTALL_DIR)
37        mkdir -p $(PKG_INSTALL_DIR)
38        $(MAKE) -C $(PKG_BUILD_DIR) \
39                $(TARGET_CONFIGURE_OPTS) \
40                CFLAGS="$(TARGET_CFLAGS) -I." \
41                libiw.so.28 iwmulticall
42        $(MAKE) -C $(PKG_BUILD_DIR) \
43                PREFIX="$(PKG_INSTALL_DIR)" \
44                INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
45                INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
46                install-iwmulticall
47endef
48
49define Build/InstallDev
50        mkdir -p $(STAGING_DIR)/usr/include
51        $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
52        mkdir -p $(STAGING_DIR)/usr/lib
53        $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
54        ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
55endef
56       
57define Build/UninstallDev
58        rm -f   $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
59                $(STAGING_DIR)/usr/lib/libiw.so*
60endef
61
62define Package/wireless-tools/install
63        $(INSTALL_DIR) $(1)/lib/wifi
64        $(INSTALL_DATA)  ./files/wifi.sh $(1)/lib/wifi/generic.sh
65        $(INSTALL_DIR) $(1)/usr/lib
66        $(INSTALL_BIN) $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
67        $(INSTALL_DIR) $(1)/usr/sbin
68        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
69endef
70
71$(eval $(call BuildPackage,wireless-tools))
Note: See TracBrowser for help on using the repository browser.