git.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ################################################################################
  2. #
  3. # git
  4. #
  5. ################################################################################
  6. GIT_VERSION = 2.1.3
  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. else
  16. GIT_CONF_OPTS += --without-openssl
  17. endif
  18. ifeq ($(BR2_PACKAGE_PERL),y)
  19. GIT_DEPENDENCIES += perl
  20. GIT_CONF_OPTS += --with-libpcre
  21. else
  22. GIT_CONF_OPTS += --without-libpcre
  23. endif
  24. ifeq ($(BR2_PACKAGE_CURL),y)
  25. GIT_DEPENDENCIES += curl
  26. GIT_CONF_OPTS += --with-curl
  27. else
  28. GIT_CONF_OPTS += --without-curl
  29. endif
  30. ifeq ($(BR2_PACKAGE_EXPAT),y)
  31. GIT_DEPENDENCIES += expat
  32. GIT_CONF_OPTS += --with-expat
  33. else
  34. GIT_CONF_OPTS += --without-expat
  35. endif
  36. ifeq ($(BR2_PACKAGE_LIBICONV),y)
  37. GIT_DEPENDENCIES += libiconv
  38. GIT_CONF_ENV += LIBS=-liconv
  39. GIT_CONF_OPTS += --with-iconv=/usr/lib
  40. else
  41. GIT_CONF_OPTS += --without-iconv
  42. endif
  43. ifeq ($(BR2_PACKAGE_TCL),y)
  44. GIT_DEPENDENCIES += tcl
  45. GIT_CONF_OPTS += --with-tcltk
  46. else
  47. GIT_CONF_OPTS += --without-tcltk
  48. endif
  49. # assume yes for these tests, configure will bail out otherwise
  50. # saying error: cannot run test program while cross compiling
  51. GIT_CONF_ENV += ac_cv_fread_reads_directories=yes \
  52. ac_cv_snprintf_returns_bogus=yes
  53. $(eval $(autotools-package))