Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Copyright (C) 2007-2009 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. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=iw
  10. PKG_VERSION:=0.9.10
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/
  14. PKG_MD5SUM:=c820116546768611bb7dd467c2b78483
  15. PKG_BUILD_DEPENDS:=mac80211 libnl
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/iw
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=cfg80211 interface configuration utility
  21. URL:=http://wireless.kernel.org/en/users/Documentation/iw
  22. DEPENDS:=@!TARGET_avr32 @!TARGET_etrax +libnl
  23. endef
  24. define Build/Configure
  25. echo "#define IW_VERSION \"$(PKG_VERSION)\"" > $(PKG_BUILD_DIR)/version.h
  26. endef
  27. MAKE_FLAGS += \
  28. CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl $(TARGET_CPPFLAGS)" \
  29. LDFLAGS="$(TARGET_LDFLAGS) -lnl"
  30. ifneq ($(CONFIG_LINUX_2_6),)
  31. define Package/iw/install
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
  34. endef
  35. endif
  36. $(eval $(call BuildPackage,iw))