package-$(BR2_PACKAGE_VSFTPD) += vsftpd
package-$(BR2_PACKAGE_WEBIF) += webif
package-$(BR2_PACKAGE_WIFICONF) += wificonf
-package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
+package-$(BR2_COMPILE_WIRELESS_TOOLS) += wireless-tools
package-$(BR2_PACKAGE_WOL) += wol
package-$(BR2_PACKAGE_WPA_SUPPLICANT) += wpa_supplicant
package-$(BR2_PACKAGE_WPUT) += wput
+config BR2_COMPILE_WIRELESS_TOOLS
+ tristate
+ default n
+ depends BR2_PACKAGE_IWLIB
+
config BR2_PACKAGE_WIRELESS_TOOLS
tristate "wireless-tools - Tools for manipulating Linux Wireless Extensions"
default y
+ select BR2_PACKAGE_IWLIB
help
Tools for configuring Wireless Adapters implementing the "Wireless Extension"
+
+config BR2_PACKAGE_IWLIB
+ tristate "iwlib - Library for manipulating Linux Wireless Extensions"
+ default y
+ select BR2_COMPILE_WIRELESS_TOOLS
+ help
+ Library configuring Wireless Adapters implementing the "Wireless Extension"
+
+
include $(TOPDIR)/package/rules.mk
+$(eval $(call PKG_template,IWLIB,iwlib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,WIRELESS_TOOLS,wireless-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
install install-iwmulticall
touch $@
+$(IPKG_IWLIB):
+ mkdir -p $(IDIR_IWLIB)/usr/lib
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_IWLIB)/usr/lib/
+ $(RSTRIP) $(IDIR_IWLIB)
+ $(IPKG_BUILD) $(IDIR_IWLIB) $(PACKAGE_DIR)
+
$(IPKG_WIRELESS_TOOLS):
- mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/lib
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/
mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/sbin
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/
$(RSTRIP) $(IDIR_WIRELESS_TOOLS)