fix description field
[openwrt.git] / package / wireless-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wireless-tools
6 PKG_VERSION:=28.pre13
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=eb2c01c2945df2682a9b3c75515fd389
9
10 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
11 PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,WIRELESS_TOOLS,wireless-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
27 libiw.so.28 iwmulticall
28 mkdir -p $(PKG_INSTALL_DIR)
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 PREFIX="$(PKG_INSTALL_DIR)" \
31 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
32 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
33 install-iwmulticall
34 touch $@
35
36 $(IPKG_WIRELESS_TOOLS):
37 mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/lib
38 $(CP) $(PKG_BUILD_DIR)/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/
39 mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/sbin
40 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/
41 $(RSTRIP) $(IDIR_WIRELESS_TOOLS)
42 $(IPKG_BUILD) $(IDIR_WIRELESS_TOOLS) $(PACKAGE_DIR)
43
44 install-dev: $(PKG_BUILD_DIR)/.built
45 mkdir -p $(STAGING_DIR)/usr/{lib,include}
46 $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
47 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
48 $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
49
50 uninstall-dev:
51 rm -f $(STAGING_DIR)/usr/lib/libiw.*
52 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
53
54 compile-targets: install-dev
55 clean-targets: uninstall-dev
This page took 0.042764 seconds and 5 git commands to generate.