initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_LIBGIT2
|
||||
bool "libgit2"
|
||||
depends on !BR2_STATIC_LIBS # libhttpparser
|
||||
select BR2_PACKAGE_LIBHTTPPARSER
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
libgit2 is a portable, pure C implementation of the Git core
|
||||
methods provided as a linkable library with a solid API,
|
||||
allowing to build Git functionality into your application.
|
||||
|
||||
https://github.com/libgit2/libgit2
|
||||
|
||||
comment "libgit2 needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 192eeff84596ff09efb6b01835a066f2df7cd7985e0991c79595688e6b36444e libgit2-1.3.0.tar.gz
|
||||
sha256 8b7e4f54f8bf210c8fe010a49571a1ee57463ef020cc43f051d4d3fbb74942af COPYING
|
||||
@@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# libgit2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGIT2_VERSION = 1.3.0
|
||||
LIBGIT2_SITE = $(call github,libgit2,libgit2,v$(LIBGIT2_VERSION))
|
||||
LIBGIT2_LICENSE = GPL-2.0 with linking exception, MIT (sha1), wildmatch license (wildmatch)
|
||||
LIBGIT2_LICENSE_FILES = COPYING
|
||||
LIBGIT2_CPE_ID_VENDOR = libgit2_project
|
||||
LIBGIT2_INSTALL_STAGING = YES
|
||||
|
||||
LIBGIT2_CONF_OPTS = \
|
||||
-DUSE_GSSAPI=OFF \
|
||||
-DBUILD_CLAR=OFF \
|
||||
-DUSE_ICONV=ON \
|
||||
-DREGEX_BACKEND=regcomp \
|
||||
-DUSE_HTTP_PARSER=system \
|
||||
-DUSE_NTLMCLIENT=OFF \
|
||||
-DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)
|
||||
|
||||
LIBGIT2_DEPENDENCIES = zlib libhttpparser
|
||||
|
||||
# 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
|
||||
LIBGIT2_CONF_OPTS += -DUSE_HTTPS=OpenSSL
|
||||
else
|
||||
LIBGIT2_CONF_OPTS += -DUSE_HTTPS=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user