avoid running timestamp.pl for dumpinfo -- drastically speeds up the .pkginfo process
[openwrt.git] / package / wireless-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wireless-tools
6 PKG_VERSION:=28
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
10 PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
11 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
12 PKG_MD5SUM:=599c94497f9c9073c7b052d3dcb7cd16
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 define Package/wireless-tools
18 SECTION:=base
19 CATEGORY:=Network
20 DEFAULT:=y
21 TITLE:=Tools for manipulating Linux Wireless Extensions
22 DESCRIPTION:=Tools for configuring Wireless Adapters implementing the "Wireless Extension"
23 URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
24 endef
25
26 define Build/Compile
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
29 libiw.so.28 iwmulticall
30 mkdir -p $(PKG_INSTALL_DIR)
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 PREFIX="$(PKG_INSTALL_DIR)" \
33 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
34 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
35 install-iwmulticall
36 endef
37
38 define Package/wireless-tools/install
39 install -d -m0755 $(1)/usr/lib
40 install -d -m0755 $(1)/usr/sbin
41 install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
42 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
43 endef
44
45 install-dev: $(PKG_BUILD_DIR)/.built
46 mkdir -p $(STAGING_DIR)/usr/{lib,include}
47 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
48 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
49 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
50
51 uninstall-dev:
52 rm -f $(STAGING_DIR)/usr/lib/libiw.*
53 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
This page took 0.050402 seconds and 5 git commands to generate.