1
0

Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. PKG_SITES:= http://hostap.epitest.fi/releases/
  13. PKG_DFLT_WPA_SUPPLICANT:= y if ADK_TARGET_SYSTEM_IBM_X40
  14. WRKSRC= ${WRKDIST}/${PKG_NAME}
  15. PKG_CHOICES:= WITH_OPENSSL WITH_GNUTLS
  16. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  17. PKGCS_WITH_OPENSSL:= libopenssl
  18. PKGCB_WITH_OPENSSL:= openssl
  19. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  20. PKGCS_WITH_GNUTLS:= libgnutls
  21. PKGCB_WITH_GNUTLS:= gnutls
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. CONFIG_STYLE:= manual
  25. INSTALL_STYLE:= manual
  26. MAKE_FLAGS+= CPPFLAGS='${TCPPFLAGS}' \
  27. LDFLAGS='${TLDFLAGS}' \
  28. OPT_FLAGS='${TCFLAGS}' \
  29. KERNEL=${LINUX_DIR}
  30. do-configure:
  31. ${CP} files/config ${WRKBUILD}/.config
  32. ifneq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_GNUTLS},)
  33. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  34. endif
  35. do-install:
  36. ${INSTALL_DIR} ${IDIR_WPA_SUPPLICANT}/usr/sbin
  37. ${INSTALL_BIN} ${WRKBUILD}/wpa_cli \
  38. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  39. ${INSTALL_BIN} ${WRKBUILD}/wpa_passphrase \
  40. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  41. ${INSTALL_BIN} ${WRKBUILD}/wpa_supplicant \
  42. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  43. include ${TOPDIR}/mk/pkg-bottom.mk