Forgot that part (#926)
[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 -d -m0755 $(1)/usr/lib
65 install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
66 install -d -m0755 $(1)/usr/sbin
67 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
68 endef
69
70 $(eval $(call BuildPackage,wireless-tools))
This page took 0.04628 seconds and 5 git commands to generate.