2018-02-14 12:13:51 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libgit2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-08-19 11:43:46 +02:00
|
|
|
LIBGIT2_VERSION = 0.28.3
|
package: remove 'v' prefix from github-fetched packages
On Github, a large number of projects name their tag vXYZ (i.e v3.0,
v0.1, etc.). In some packages we do:
<pkg>_VERSION = v0.3
<pkg>_SITE = $(call github foo,bar,$(<pkg>_VERSION))
And in some other packages we do:
<pkg>_VERSION = 0.3
<pkg>_SITE = $(call github foo,bar,v$(<pkg>_VERSION))
I.e in one case we consider the version to be v0.3, in the other case
we consider 0.3 to be the version.
The problem with v0.3 is that when used in conjunction with
release-monitoring.org, it doesn't work very well, because
release-monitoring.org has the concept of "version prefix" and using
that they drop the "v" prefix for the version.
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org because Buildroot has 'v0.3'
and release-monitoring.org has '0.3'.
Since really the version number of 0.3, is makes sense to update our
packages to drop this 'v'.
This commit only addresses the (common) case of github packages where
the prefix is simply 'v'. Other cases will be handled by separate
commits. Also, there are a few cases that couldn't be handled
mechanically that aren't covered by this commit.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
[Arnout: don't change flatbuffers, json-for-modern-cpp, libpagekite,
python-scapy3k, softether]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 08:42:06 +02:00
|
|
|
LIBGIT2_SITE = $(call github,libgit2,libgit2,v$(LIBGIT2_VERSION))
|
2018-02-14 12:13:51 +01:00
|
|
|
LIBGIT2_LICENSE = GPL-2.0 with linking exception
|
|
|
|
LIBGIT2_LICENSE_FILES = COPYING
|
|
|
|
LIBGIT2_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
LIBGIT2_CONF_OPTS = \
|
|
|
|
-DUSE_GSSAPI=OFF \
|
|
|
|
-DBUILD_CLAR=OFF \
|
|
|
|
-DUSE_ICONV=ON \
|
|
|
|
-DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)
|
|
|
|
|
2018-06-01 17:41:58 +02:00
|
|
|
LIBGIT2_DEPENDENCIES = zlib
|
|
|
|
|
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))
|