You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
17 years ago
|
#
|
||
14 years ago
|
# Copyright (C) 2007-2011 OpenWrt.org
|
||
17 years ago
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
|
PKG_NAME:=iw
|
||
12 years ago
|
PKG_VERSION:=3.6
|
||
13 years ago
|
PKG_RELEASE:=1
|
||
17 years ago
|
|
||
16 years ago
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||
|
PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/
|
||
12 years ago
|
PKG_MD5SUM:=1c18bfbbc8773629e5e8ac733a39540c
|
||
17 years ago
|
|
||
12 years ago
|
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
|
||
|
|
||
17 years ago
|
include $(INCLUDE_DIR)/package.mk
|
||
|
|
||
|
define Package/iw
|
||
|
SECTION:=net
|
||
|
CATEGORY:=Network
|
||
|
TITLE:=cfg80211 interface configuration utility
|
||
16 years ago
|
URL:=http://wireless.kernel.org/en/users/Documentation/iw
|
||
15 years ago
|
DEPENDS:= +libnl-tiny @(!(TARGET_avr32||TARGET_etrax)||BROKEN)
|
||
17 years ago
|
endef
|
||
|
|
||
|
define Build/Configure
|
||
16 years ago
|
echo "const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/version.c
|
||
16 years ago
|
rm -f $(PKG_BUILD_DIR)/version.sh
|
||
|
touch $(PKG_BUILD_DIR)/version.sh
|
||
|
chmod +x $(PKG_BUILD_DIR)/version.sh
|
||
17 years ago
|
endef
|
||
|
|
||
16 years ago
|
TARGET_CPPFLAGS:= \
|
||
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
||
|
$(TARGET_CPPFLAGS) \
|
||
16 years ago
|
-DCONFIG_LIBNL20 \
|
||
|
-D_GNU_SOURCE
|
||
16 years ago
|
|
||
17 years ago
|
MAKE_FLAGS += \
|
||
16 years ago
|
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
|
||
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||
|
NL1FOUND="" NL2FOUND=Y \
|
||
|
NLLIBNAME="libnl-tiny" \
|
||
|
LIBS="-lm -lnl-tiny" \
|
||
|
V=1
|
||
17 years ago
|
|
||
15 years ago
|
define Package/iw/install
|
||
17 years ago
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
|
||
15 years ago
|
endef
|
||
17 years ago
|
|
||
|
$(eval $(call BuildPackage,iw))
|