libkrb5.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ################################################################################
  2. #
  3. # libkrb5
  4. #
  5. ################################################################################
  6. LIBKRB5_VERSION = 1.16
  7. LIBKRB5_SITE = https://web.mit.edu/kerberos/dist/krb5/$(LIBKRB5_VERSION)
  8. LIBKRB5_SOURCE = krb5-$(LIBKRB5_VERSION).tar.gz
  9. LIBKRB5_SUBDIR = src
  10. LIBKRB5_LICENSE = MIT
  11. LIBKRB5_LICENSE_FILES = NOTICE
  12. LIBKRB5_INSTALL_STAGING = YES
  13. # The configure script uses AC_TRY_RUN tests to check for those values,
  14. # which doesn't work in a cross-compilation scenario. Therefore,
  15. # we feed the configure script with the correct answer for those tests
  16. LIBKRB5_CONF_ENV = \
  17. ac_cv_printf_positional=yes \
  18. ac_cv_func_regcomp=yes \
  19. krb5_cv_attr_constructor_destructor=yes,yes
  20. # Never use the host packages
  21. LIBKRB5_CONF_OPTS = \
  22. --without-system-db \
  23. --without-system-et \
  24. --without-system-ss \
  25. --without-system-verto
  26. ifeq ($(BR2_PACKAGE_OPENLDAP),y)
  27. LIBKRB5_CONF_OPTS += --with-ldap
  28. LIBKRB5_DEPENDENCIES += openldap
  29. else
  30. LIBKRB5_CONF_OPTS += --without-ldap
  31. endif
  32. ifeq ($(BR2_PACKAGE_LIBEDIT),y)
  33. LIBKRB5_CONF_OPTS += --with-libedit
  34. LIBKRB5_DEPENDENCIES += libedit
  35. else
  36. LIBKRB5_CONF_OPTS += --without-libedit
  37. endif
  38. ifeq ($(BR2_PACKAGE_READLINE),y)
  39. LIBKRB5_CONF_OPTS += --with-readline
  40. LIBKRB5_DEPENDENCIES += readline
  41. else
  42. LIBKRB5_CONF_OPTS += --without-readline
  43. endif
  44. ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
  45. LIBKRB5_CONF_OPTS += --disable-thread-support
  46. endif
  47. $(eval $(autotools-package))