fix the path to the yealink module (#1944)
[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:=29
13 PKG_MINOR:=.pre21
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=wireless_tools.$(PKG_VERSION)$(PKG_MINOR).tar.gz
17 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
18 PKG_MD5SUM:=953774d6a34050bae4ef3bfa731f6653
19 TAR_OPTIONS += || true
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define 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
33 endef
34
35 define 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.$(PKG_VERSION) 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
47 endef
48
49 define 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.$(PKG_VERSION) $(STAGING_DIR)/usr/lib/libiw.so
55 endef
56
57 define Build/UninstallDev
58 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
59 $(STAGING_DIR)/usr/lib/libiw.so*
60 endef
61
62 define Package/wireless-tools/install
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(CP) $(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.040466 seconds and 5 git commands to generate.