Remove remaining etrax references
[openwrt/svn-archive/archive.git] / package / network / utils / iw / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iw
11 PKG_VERSION:=3.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/
16 PKG_MD5SUM:=1c18bfbbc8773629e5e8ac733a39540c
17
18 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/iw
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=cfg80211 interface configuration utility
26 URL:=http://wireless.kernel.org/en/users/Documentation/iw
27 DEPENDS:= +libnl-tiny @(!TARGET_avr32||BROKEN)
28 endef
29
30 define Build/Configure
31 echo "const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/version.c
32 rm -f $(PKG_BUILD_DIR)/version.sh
33 touch $(PKG_BUILD_DIR)/version.sh
34 chmod +x $(PKG_BUILD_DIR)/version.sh
35 endef
36
37 TARGET_CPPFLAGS:= \
38 -I$(STAGING_DIR)/usr/include/libnl-tiny \
39 $(TARGET_CPPFLAGS) \
40 -DCONFIG_LIBNL20 \
41 -D_GNU_SOURCE
42
43 MAKE_FLAGS += \
44 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
45 LDFLAGS="$(TARGET_LDFLAGS)" \
46 NL1FOUND="" NL2FOUND=Y \
47 NLLIBNAME="libnl-tiny" \
48 LIBS="-lm -lnl-tiny" \
49 V=1
50
51 define Package/iw/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
54 endef
55
56 $(eval $(call BuildPackage,iw))