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