create a package index
[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_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
16 PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
18 PKG_MD5SUM:=599c94497f9c9073c7b052d3dcb7cd16
19 PKG_CAT:=zcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wireless-tools
26 SECTION:=base
27 CATEGORY:=Network
28 DEFAULT:=y
29 TITLE:=Tools for manipulating Linux Wireless Extensions
30 DESCRIPTION:=Tools for configuring Wireless Adapters implementing the "Wireless Extension"
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 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
39 libiw.so.28 iwmulticall
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 PREFIX="$(PKG_INSTALL_DIR)" \
42 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
43 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
44 install-iwmulticall
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(STAGING_DIR)/usr/include
49 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
50 mkdir -p $(STAGING_DIR)/usr/lib
51 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
52 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
53 endef
54
55 define Build/UninstallDev
56 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
57 $(STAGING_DIR)/usr/lib/libiw.so*
58 endef
59
60 define Package/wireless-tools/install
61 install -d -m0755 $(1)/usr/lib
62 install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
63 install -d -m0755 $(1)/usr/sbin
64 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
65 endef
66
67 $(eval $(call BuildPackage,wireless-tools))
This page took 0.053573 seconds and 5 git commands to generate.