2018-02-14 12:13:51 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libgit2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-04-27 09:22:45 +02:00
|
|
|
LIBGIT2_VERSION = 1.4.3
|
2021-09-08 15:30:09 +02:00
|
|
|
LIBGIT2_SITE = $(call github,libgit2,libgit2,v$(LIBGIT2_VERSION))
|
2022-02-28 09:57:00 +01:00
|
|
|
LIBGIT2_LICENSE = GPL-2.0 with linking exception, MIT (sha1), wildmatch license (wildmatch), CC0-1.0 (xoroshiro256)
|
2018-02-14 12:13:51 +01:00
|
|
|
LIBGIT2_LICENSE_FILES = COPYING
|
2021-03-05 23:27:44 +01:00
|
|
|
LIBGIT2_CPE_ID_VENDOR = libgit2_project
|
2018-02-14 12:13:51 +01:00
|
|
|
LIBGIT2_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
LIBGIT2_CONF_OPTS = \
|
|
|
|
-DUSE_GSSAPI=OFF \
|
|
|
|
-DUSE_ICONV=ON \
|
2020-04-17 09:28:01 +02:00
|
|
|
-DREGEX_BACKEND=regcomp \
|
|
|
|
-DUSE_HTTP_PARSER=system \
|
2021-05-24 19:33:10 +02:00
|
|
|
-DUSE_NTLMCLIENT=OFF \
|
2022-02-28 09:57:00 +01:00
|
|
|
-DUSE_THREADS=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)
|
2018-02-14 12:13:51 +01:00
|
|
|
|
2020-04-17 09:28:01 +02:00
|
|
|
LIBGIT2_DEPENDENCIES = zlib libhttpparser
|
2018-06-01 17:41:58 +02:00
|
|
|
|
2018-02-14 12:13:51 +01:00
|
|
|
# If libiconv is available (for !locale toolchains), then we can use
|
|
|
|
# it for iconv support. Note that USE_ICONV=ON is still correct even
|
|
|
|
# without libiconv because (1) most toolchain have iconv support
|
|
|
|
# without libiconv and (2) even if USE_ICONV=ON but iconv support is
|
|
|
|
# not available, libgit2 simply avoids using iconv.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
LIBGIT2_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH2),y)
|
|
|
|
LIBGIT2_DEPENDENCIES += libssh2
|
|
|
|
LIBGIT2_CONF_OPTS += -DUSE_SSH=ON
|
|
|
|
else
|
|
|
|
LIBGIT2_CONF_OPTS += -DUSE_SSH=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBGIT2_DEPENDENCIES += openssl
|
2018-06-01 17:41:59 +02:00
|
|
|
LIBGIT2_CONF_OPTS += -DUSE_HTTPS=OpenSSL
|
2018-02-14 12:13:51 +01:00
|
|
|
else
|
2018-06-01 17:41:59 +02:00
|
|
|
LIBGIT2_CONF_OPTS += -DUSE_HTTPS=OFF
|
2018-02-14 12:13:51 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|