1################################################################################ 2# 3# git 4# 5################################################################################ 6 7GIT_VERSION = 2.45.2 8GIT_SOURCE = git-$(GIT_VERSION).tar.xz 9GIT_SITE = $(BR2_KERNEL_MIRROR)/software/scm/git 10GIT_LICENSE = GPL-2.0, LGPL-2.1+ 11GIT_LICENSE_FILES = COPYING LGPL-2.1 12GIT_CPE_ID_VENDOR = git-scm 13GIT_SELINUX_MODULES = apache git xdg 14GIT_DEPENDENCIES = zlib $(TARGET_NLS_DEPENDENCIES) 15 16ifeq ($(BR2_PACKAGE_OPENSSL),y) 17GIT_DEPENDENCIES += host-pkgconf openssl 18GIT_CONF_OPTS += --with-openssl 19GIT_MAKE_OPTS += LIB_4_CRYPTO="`$(PKG_CONFIG_HOST_BINARY) --libs libssl libcrypto`" 20else 21GIT_CONF_OPTS += --without-openssl 22endif 23 24ifeq ($(BR2_PACKAGE_PCRE2),y) 25GIT_DEPENDENCIES += pcre2 26GIT_CONF_OPTS += --with-libpcre2 27else 28GIT_CONF_OPTS += --without-libpcre2 29endif 30 31ifeq ($(BR2_PACKAGE_LIBCURL),y) 32GIT_DEPENDENCIES += libcurl 33GIT_CONF_OPTS += --with-curl 34GIT_CONF_ENV += \ 35 ac_cv_prog_CURL_CONFIG=$(STAGING_DIR)/usr/bin/$(LIBCURL_CONFIG_SCRIPTS) 36else 37GIT_CONF_OPTS += --without-curl 38endif 39 40ifeq ($(BR2_PACKAGE_EXPAT),y) 41GIT_DEPENDENCIES += expat 42GIT_CONF_OPTS += --with-expat 43else 44GIT_CONF_OPTS += --without-expat 45endif 46 47ifeq ($(BR2_PACKAGE_LIBICONV),y) 48GIT_DEPENDENCIES += libiconv 49GIT_CONF_ENV_LIBS += -liconv 50GIT_CONF_OPTS += --with-iconv=$(STAGING_DIR)/usr 51GIT_CONF_ENV += ac_cv_iconv_omits_bom=no 52else 53GIT_CONF_OPTS += --without-iconv 54endif 55 56ifeq ($(BR2_PACKAGE_TCL),y) 57GIT_DEPENDENCIES += tcl 58GIT_CONF_OPTS += --with-tcltk 59else 60GIT_CONF_OPTS += --without-tcltk 61endif 62 63ifeq ($(BR2_SYSTEM_ENABLE_NLS),) 64GIT_MAKE_OPTS += NO_GETTEXT=1 65endif 66 67GIT_CFLAGS = $(TARGET_CFLAGS) 68 69ifneq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_93847),) 70GIT_CFLAGS += -O0 71endif 72 73GIT_CONF_OPTS += CFLAGS="$(GIT_CFLAGS)" 74 75GIT_INSTALL_TARGET_OPTS = $(GIT_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install 76 77# assume yes for these tests, configure will bail out otherwise 78# saying error: cannot run test program while cross compiling 79GIT_CONF_ENV += \ 80 ac_cv_fread_reads_directories=yes \ 81 ac_cv_snprintf_returns_bogus=yes LIBS='$(GIT_CONF_ENV_LIBS)' 82 83$(eval $(autotools-package)) 84