Makefile 1.5 KB

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