source: trunk/package/wpa_supplicant/Makefile @ 11311

Last change on this file since 11311 was 11311, checked in by nbd, 9 years ago

fix wpa_supplicant cflags

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2008 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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=wpa_supplicant
12PKG_VERSION:=0.5.10
13PKG_RELEASE:=1
14PKG_MD5SUM:=9e7b99da67c47d81121368c6d580d069
15
16PKG_SOURCE_URL:=http://hostap.epitest.fi/releases
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/wpa-supplicant
22  SECTION:=net
23  CATEGORY:=Network
24  DEPENDS:=+libopenssl
25  TITLE:=WPA Supplicant
26  URL:=http://hostap.epitest.fi/wpa_supplicant/
27endef
28
29define Package/wpa-supplicant/Description
30 WPA Supplicant
31endef
32
33define Package/wpa-cli
34  SECTION:=net
35  CATEGORY:=Network
36  DEPENDS:=wpa-supplicant
37  TITLE:=WPA Supplicant command line interface
38endef
39
40define Package/wpa-cli/Description
41 
42endef
43
44define Build/Configure
45        cp ./files/config.$(ARCH) $(PKG_BUILD_DIR)/.config
46endef
47
48define Build/Compile
49        rm -rf $(PKG_INSTALL_DIR)
50        mkdir -p $(PKG_INSTALL_DIR)
51        CFLAGS="$(TARGET_CFLAGS)" \
52        $(MAKE) -C $(PKG_BUILD_DIR) \
53                CC="$(TARGET_CC)" \
54                KERNEL=$(LINUX_DIR) \
55                CPPFLAGS="$(TARGET_CPPFLAGS)" \
56                LDFLAGS="$(TARGET_LDFLAGS)" \
57                all
58        $(STRIP) $(PKG_BUILD_DIR)/wpa_supplicant
59        $(STRIP) $(PKG_BUILD_DIR)/wpa_cli
60               
61endef
62
63define Package/wpa-supplicant/install
64        $(INSTALL_DIR) $(1)/usr/sbin
65        $(CP) $(PKG_BUILD_DIR)/wpa_{supplicant,passphrase} $(1)/usr/sbin/
66endef
67
68define Package/wpa-cli/install
69        $(INSTALL_DIR) $(1)/usr/sbin
70        $(CP) $(PKG_BUILD_DIR)/wpa_cli $(1)/usr/sbin/
71endef
72
73$(eval $(call BuildPackage,wpa-supplicant))
74$(eval $(call BuildPackage,wpa-cli))
Note: See TracBrowser for help on using the repository browser.