/etc/config/wireless support for madwifi (work in progress)
[openwrt.git] / package / wpa_supplicant / Makefile
1 #
2 # Copyright (C) 2006 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wpa_supplicant
12 PKG_VERSION:=0.5.5
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=482dd85949c82aa15309e5ab3d2cf5c3
15
16 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wpa-supplicant
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libopenssl
29 TITLE:=WPA Supplicant
30 DESCRIPTION:=WPA Supplicant
31 URL:=http://hostap.epitest.fi/wpa_supplicant/
32 endef
33
34
35 define Package/wpa-cli
36 SECTION:=net
37 CATEGORY:=Network
38 DEPENDS:=wpa-supplicant
39 TITLE:=WPA Supplicant command line interface
40 DESCRIPTION:=
41 endef
42
43
44 define Build/Configure
45 cp ./files/config.$(ARCH) $(PKG_BUILD_DIR)/.config
46 endef
47
48 define Build/Compile
49 rm -rf $(PKG_INSTALL_DIR)
50 mkdir -p $(PKG_INSTALL_DIR)
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 CC="$(TARGET_CC)" \
53 KERNEL=$(LINUX_DIR) \
54 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
55 LDFLAGS=" -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
56 all
57 $(STRIP) $(PKG_BUILD_DIR)/wpa_supplicant
58 $(STRIP) $(PKG_BUILD_DIR)/wpa_cli
59
60 endef
61
62 define Package/wpa-supplicant/install
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant $(1)/usr/sbin/
65 endef
66
67 define Package/wpa-cli/install
68 $(INSTALL_DIR) $(1)/usr/sbin
69 $(CP) $(PKG_BUILD_DIR)/wpa_cli $(1)/usr/sbin/
70 endef
71
72 $(eval $(call BuildPackage,wpa-supplicant))
73 $(eval $(call BuildPackage,wpa-cli))
This page took 0.047189 seconds and 5 git commands to generate.