3 include $(TOPDIR)/rules.mk
5 PKG_NAME:=wpa_supplicant
8 PKG_MD5SUM:=98498c152cbfc388c306fd9bbf7d57d4
10 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 include $(TOPDIR)/package/rules.mk
18 $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(PKG_BUILD_DIR)/.configured:
21 $(CP) ./files/config $(PKG_BUILD_DIR)/.config
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 $(TARGET_CONFIGURE_OPTS) \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/madwifi" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 OPT_FLAGS="$(TARGET_CFLAGS)" \
34 $(IPKG_WPA_SUPPLICANT):
35 install -m0755 -d $(IDIR_WPA_SUPPLICANT)/usr/sbin
36 install -m0755 $(PKG_BUILD_DIR)/wpa_cli $(IDIR_WPA_SUPPLICANT)/usr/sbin/
37 install -m0755 $(PKG_BUILD_DIR)/wpa_passphrase $(IDIR_WPA_SUPPLICANT)/usr/sbin/
38 install -m0755 $(PKG_BUILD_DIR)/wpa_supplicant $(IDIR_WPA_SUPPLICANT)/usr/sbin/
39 $(RSTRIP) $(IDIR_WPA_SUPPLICANT)
40 $(IPKG_BUILD) $(IDIR_WPA_SUPPLICANT) $(PACKAGE_DIR)