2
1

git.mk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ################################################################################
  2. #
  3. # git
  4. #
  5. ################################################################################
  6. GIT_VERSION = 2.6.4
  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_LIBCURL),y)
  26. GIT_DEPENDENCIES += libcurl
  27. GIT_CONF_OPTS += --with-curl
  28. GIT_CONF_ENV += \
  29. ac_cv_prog_curl_config=$(STAGING_DIR)/usr/bin/$(LIBCURL_CONFIG_SCRIPTS)
  30. else
  31. GIT_CONF_OPTS += --without-curl
  32. endif
  33. ifeq ($(BR2_PACKAGE_EXPAT),y)
  34. GIT_DEPENDENCIES += expat
  35. GIT_CONF_OPTS += --with-expat
  36. else
  37. GIT_CONF_OPTS += --without-expat
  38. endif
  39. ifeq ($(BR2_PACKAGE_LIBICONV),y)
  40. GIT_DEPENDENCIES += libiconv
  41. GIT_CONF_ENV_LIBS += -liconv
  42. GIT_CONF_OPTS += --with-iconv=/usr/lib
  43. else
  44. GIT_CONF_OPTS += --without-iconv
  45. endif
  46. ifeq ($(BR2_PACKAGE_TCL),y)
  47. GIT_DEPENDENCIES += tcl
  48. GIT_CONF_OPTS += --with-tcltk
  49. else
  50. GIT_CONF_OPTS += --without-tcltk
  51. endif
  52. # assume yes for these tests, configure will bail out otherwise
  53. # saying error: cannot run test program while cross compiling
  54. GIT_CONF_ENV += \
  55. ac_cv_fread_reads_directories=yes \
  56. ac_cv_snprintf_returns_bogus=yes LIBS='$(GIT_CONF_ENV_LIBS)'
  57. $(eval $(autotools-package))