git.mk 1.5 KB

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