git.mk 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ################################################################################
  2. #
  3. # git
  4. #
  5. ################################################################################
  6. GIT_VERSION = 2.12.2
  7. GIT_SOURCE = git-$(GIT_VERSION).tar.xz
  8. GIT_SITE = https://www.kernel.org/pub/software/scm/git
  9. GIT_LICENSE = GPL-2.0, LGPL-2.1+
  10. GIT_LICENSE_FILES = COPYING LGPL-2.1
  11. GIT_DEPENDENCIES = zlib host-gettext
  12. ifeq ($(BR2_PACKAGE_GETTEXT),y)
  13. GIT_DEPENDENCIES += gettext
  14. endif
  15. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  16. GIT_DEPENDENCIES += openssl
  17. GIT_CONF_OPTS += --with-openssl
  18. GIT_CONF_ENV_LIBS += $(if $(BR2_STATIC_LIBS),-lz)
  19. else
  20. GIT_CONF_OPTS += --without-openssl
  21. endif
  22. ifeq ($(BR2_PACKAGE_PCRE),y)
  23. GIT_DEPENDENCIES += pcre
  24. GIT_CONF_OPTS += --with-libpcre
  25. else
  26. GIT_CONF_OPTS += --without-libpcre
  27. endif
  28. ifeq ($(BR2_PACKAGE_LIBCURL),y)
  29. GIT_DEPENDENCIES += libcurl
  30. GIT_CONF_OPTS += --with-curl
  31. GIT_CONF_ENV += \
  32. ac_cv_prog_curl_config=$(STAGING_DIR)/usr/bin/$(LIBCURL_CONFIG_SCRIPTS)
  33. else
  34. GIT_CONF_OPTS += --without-curl
  35. endif
  36. ifeq ($(BR2_PACKAGE_EXPAT),y)
  37. GIT_DEPENDENCIES += expat
  38. GIT_CONF_OPTS += --with-expat
  39. else
  40. GIT_CONF_OPTS += --without-expat
  41. endif
  42. ifeq ($(BR2_PACKAGE_LIBICONV),y)
  43. GIT_DEPENDENCIES += libiconv
  44. GIT_CONF_ENV_LIBS += -liconv
  45. GIT_CONF_OPTS += --with-iconv=/usr/lib
  46. else
  47. GIT_CONF_OPTS += --without-iconv
  48. endif
  49. ifeq ($(BR2_PACKAGE_TCL),y)
  50. GIT_DEPENDENCIES += tcl
  51. GIT_CONF_OPTS += --with-tcltk
  52. else
  53. GIT_CONF_OPTS += --without-tcltk
  54. endif
  55. # assume yes for these tests, configure will bail out otherwise
  56. # saying error: cannot run test program while cross compiling
  57. GIT_CONF_ENV += \
  58. ac_cv_fread_reads_directories=yes \
  59. ac_cv_snprintf_returns_bogus=yes LIBS='$(GIT_CONF_ENV_LIBS)'
  60. $(eval $(autotools-package))