fix jffs2root compile
[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 DEFAULT:=y
30 TITLE:=Tools for manipulating Linux Wireless Extensions
31 DESCRIPTION:=\
32 This package contains a collection of tools for configuring wireless \\\
33 adapters implementing the "Linux Wireless Extensions".
34 URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
35 endef
36
37 define Build/Compile
38 rm -rf $(PKG_INSTALL_DIR)
39 mkdir -p $(PKG_INSTALL_DIR)
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS) -I." \
43 libiw.so.28 iwmulticall
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 PREFIX="$(PKG_INSTALL_DIR)" \
46 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
47 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
48 install-iwmulticall
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(STAGING_DIR)/usr/include
53 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
54 mkdir -p $(STAGING_DIR)/usr/lib
55 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
56 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
57 endef
58
59 define Build/UninstallDev
60 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
61 $(STAGING_DIR)/usr/lib/libiw.so*
62 endef
63
64 define Package/wireless-tools/install
65 install -d -m0755 $(1)/usr/lib
66 install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
67 install -d -m0755 $(1)/usr/sbin
68 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
69 endef
70
71 $(eval $(call BuildPackage,wireless-tools))
This page took 0.041246 seconds and 5 git commands to generate.