Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= wpa_supplicant
  5. PKG_VERSION:= 2.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= e0d8b8fd68a659636eaba246bb2caacbf53d22d53b2b6b90eb4b4fef0993c8ed
  8. PKG_DESCR:= wpa supplicant
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= libnl librt
  11. PKG_BUILDDEP:= libnl
  12. PKG_URL:= http://hostap.epitest.fi/wpa_supplicant/
  13. PKG_SITES:= http://hostap.epitest.fi/releases/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_DFLT_WPA_SUPPLICANT:= y if ADK_TARGET_WITH_WIFI
  16. WRKSRC= ${WRKDIST}/${PKG_NAME}
  17. PKG_CHOICES_WPA_SUPPLICANT:= WITH_GNUTLS WITH_OPENSSL WITH_INTERNAL
  18. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  19. PKGCS_WITH_OPENSSL:= libopenssl
  20. PKGCB_WITH_OPENSSL:= openssl
  21. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  22. PKGCS_WITH_GNUTLS:= libgnutls
  23. PKGCB_WITH_GNUTLS:= gnutls
  24. PKGCD_WITH_INTERNAL:= use internal crypto library
  25. include ${ADK_TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. CONFIG_STYLE:= manual
  28. INSTALL_STYLE:= manual
  29. TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
  30. MAKE_FLAGS+= CPPFLAGS='${TARGET_CPPFLAGS}' \
  31. LDFLAGS='${TARGET_LDFLAGS}' \
  32. OPT_FLAGS='${TARGET_CFLAGS}' \
  33. KERNEL=${LINUX_DIR}
  34. do-configure:
  35. ${CP} ./files/config ${WRKBUILD}/.config
  36. ifneq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_GNUTLS},)
  37. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  38. endif
  39. ifneq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_INTERNAL},)
  40. ${SED} "s#openssl#internal#" ${WRKBUILD}/.config
  41. endif
  42. do-install:
  43. ${INSTALL_DIR} ${IDIR_WPA_SUPPLICANT}/usr/sbin
  44. ${INSTALL_BIN} ${WRKBUILD}/wpa_cli \
  45. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  46. ${INSTALL_BIN} ${WRKBUILD}/wpa_passphrase \
  47. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  48. ${INSTALL_BIN} ${WRKBUILD}/wpa_supplicant \
  49. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  50. include ${ADK_TOPDIR}/mk/pkg-bottom.mk