1
0

Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f516f191384a9a546e3f5145c08addda
  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_OPENSSL WITH_GNUTLS
  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. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. CONFIG_STYLE:= manual
  26. INSTALL_STYLE:= manual
  27. MAKE_FLAGS+= CPPFLAGS='${TARGET_CPPFLAGS}' \
  28. LDFLAGS='${TARGET_LDFLAGS}' \
  29. OPT_FLAGS='${TARGET_CFLAGS}' \
  30. KERNEL=${LINUX_DIR}
  31. do-configure:
  32. ${CP} ./files/config ${WRKBUILD}/.config
  33. ifneq (${ADK_PACKAGE_WPA_SUPPLICANT_WITH_GNUTLS},)
  34. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  35. endif
  36. do-install:
  37. ${INSTALL_DIR} ${IDIR_WPA_SUPPLICANT}/usr/sbin
  38. ${INSTALL_BIN} ${WRKBUILD}/wpa_cli \
  39. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  40. ${INSTALL_BIN} ${WRKBUILD}/wpa_passphrase \
  41. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  42. ${INSTALL_BIN} ${WRKBUILD}/wpa_supplicant \
  43. ${IDIR_WPA_SUPPLICANT}/usr/sbin/
  44. include ${TOPDIR}/mk/pkg-bottom.mk