b08a4be9a754c064f6b04b3940a014563724fe08
[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.7
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=bd2436392ad3c6d2513da701a12f2d27
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 include $(INCLUDE_DIR)/package.mk
21
22 define Package/wpa-supplicant
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libopenssl
26 TITLE:=WPA Supplicant
27 DESCRIPTION:=WPA Supplicant
28 URL:=http://hostap.epitest.fi/wpa_supplicant/
29 endef
30
31
32 define Package/wpa-cli
33 SECTION:=net
34 CATEGORY:=Network
35 DEPENDS:=wpa-supplicant
36 TITLE:=WPA Supplicant command line interface
37 DESCRIPTION:=
38 endef
39
40
41 define Build/Configure
42 cp ./files/config.$(ARCH) $(PKG_BUILD_DIR)/.config
43 endef
44
45 define Build/Compile
46 rm -rf $(PKG_INSTALL_DIR)
47 mkdir -p $(PKG_INSTALL_DIR)
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 CC="$(TARGET_CC)" \
50 KERNEL=$(LINUX_DIR) \
51 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
52 LDFLAGS=" -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
53 all
54 $(STRIP) $(PKG_BUILD_DIR)/wpa_supplicant
55 $(STRIP) $(PKG_BUILD_DIR)/wpa_cli
56
57 endef
58
59 define Package/wpa-supplicant/install
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant $(1)/usr/sbin/
62 endef
63
64 define Package/wpa-cli/install
65 $(INSTALL_DIR) $(1)/usr/sbin
66 $(CP) $(PKG_BUILD_DIR)/wpa_cli $(1)/usr/sbin/
67 endef
68
69 $(eval $(call BuildPackage,wpa-supplicant))
70 $(eval $(call BuildPackage,wpa-cli))
This page took 0.041401 seconds and 3 git commands to generate.