1
0

Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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:= 2.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3be2ebfdcced52e00eda0afe2889839d
  8. PKG_DESCR:= WPA Supplicant with support for WPA and WPA2
  9. PKG_SECTION:= wifi
  10. PKG_DEPENDS:= libnl
  11. PKG_BUILDDEP:= libnl
  12. PKG_URL:= http://hostap.epitest.fi/wpa_supplicant/
  13. PKG_SITES:= http://hostap.epitest.fi/releases/
  14. PKG_DFLT_WPA_SUPPLICANT:= y if ADK_TARGET_SYSTEM_IBM_X40
  15. WRKSRC= ${WRKDIST}/${PKG_NAME}
  16. PKG_CHOICES_WPA_SUPPLICANT:= WITH_GNUTLS WITH_OPENSSL WITH_INTERNAL
  17. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  18. PKGCS_WITH_OPENSSL:= libopenssl
  19. PKGCB_WITH_OPENSSL:= openssl
  20. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  21. PKGCS_WITH_GNUTLS:= libgnutls
  22. PKGCB_WITH_GNUTLS:= gnutls
  23. PKGCD_WITH_INTERNAL:= use internal crypto library
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. CONFIG_STYLE:= manual
  27. INSTALL_STYLE:= manual
  28. TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
  29. MAKE_FLAGS+= CPPFLAGS='${TARGET_CPPFLAGS}' \
  30. LDFLAGS='${TARGET_LDFLAGS}' \
  31. OPT_FLAGS='${TARGET_CFLAGS}' \
  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. ifneq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_INTERNAL},)
  39. ${SED} "s#openssl#internal#" ${WRKBUILD}/.config
  40. endif
  41. do-install:
  42. ${INSTALL_DIR} ${IDIR_WPA_SUPPLICANT}/usr/sbin
  43. ${INSTALL_BIN} ${WRKBUILD}/wpa_cli \
  44. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  45. ${INSTALL_BIN} ${WRKBUILD}/wpa_passphrase \
  46. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  47. ${INSTALL_BIN} ${WRKBUILD}/wpa_supplicant \
  48. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  49. include ${TOPDIR}/mk/pkg-bottom.mk