Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= wpa_supplicant
  5. PKG_VERSION:= 0.7.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0e2cb7e4c35667351d8b7ec28c783e6a
  8. PKG_DESCR:= WPA Supplicant with support for WPA and WPA2
  9. PKG_SECTION:= wifi
  10. PKG_DEPENDS:= libnl
  11. PKG_BUILDDEP+= libnl
  12. ifeq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_OPENSSL},y)
  13. PKG_BUILDDEP+= openssl
  14. endif
  15. ifeq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_GNUTLS},y)
  16. PKG_BUILDDEP+= gnutls
  17. endif
  18. PKG_SITES:= http://hostap.epitest.fi/releases/
  19. WRKSRC= ${WRKDIST}/${PKG_NAME}
  20. PKG_CHOICES:= WITH_OPENSSL WITH_GNUTLS
  21. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  22. PKGCS_WITH_OPENSSL:= libopenssl
  23. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  24. PKGCS_WITH_GNUTLS:= libgnutls
  25. include ${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. MAKE_FLAGS+= CPPFLAGS='${TCPPFLAGS}' \
  30. LDFLAGS='${TLDFLAGS}' \
  31. OPT_FLAGS='${TCFLAGS}' \
  32. KERNEL=${LINUX_DIR}
  33. do-configure:
  34. ${CP} files/config ${WRKBUILD}/.config
  35. ifneq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_GNUTLS},)
  36. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  37. endif
  38. do-install:
  39. ${INSTALL_DIR} ${IDIR_WPA_SUPPLICANT}/usr/sbin
  40. ${INSTALL_BIN} ${WRKBUILD}/wpa_cli \
  41. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  42. ${INSTALL_BIN} ${WRKBUILD}/wpa_passphrase \
  43. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  44. ${INSTALL_BIN} ${WRKBUILD}/wpa_supplicant \
  45. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  46. include ${TOPDIR}/mk/pkg-bottom.mk