aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2017-05-19 06:34:56 +0800
committerwg <wg@FreeBSD.org>2017-05-19 06:34:56 +0800
commit111cf79780a7e578d9b10c0c8baa18c6800c50d2 (patch)
tree07bd0f61ad2f2fe036a70cf162b0b4fe4bfe1638
parenta8f6779a384961e035020d335aacf198b1c1e2a9 (diff)
downloadfreebsd-ports-gnome-111cf79780a7e578d9b10c0c8baa18c6800c50d2.tar.gz
freebsd-ports-gnome-111cf79780a7e578d9b10c0c8baa18c6800c50d2.tar.zst
freebsd-ports-gnome-111cf79780a7e578d9b10c0c8baa18c6800c50d2.zip
devel/libgit2: fix build with libressl
PR: 219362 Submitted by: tobik
-rw-r--r--devel/libgit2/Makefile1
-rw-r--r--devel/libgit2/files/patch-src_openssl__stream.h15
2 files changed, 16 insertions, 0 deletions
diff --git a/devel/libgit2/Makefile b/devel/libgit2/Makefile
index fd3b1db0f0f7..e19d9b16b718 100644
--- a/devel/libgit2/Makefile
+++ b/devel/libgit2/Makefile
@@ -2,6 +2,7 @@
PORTNAME= libgit2
PORTVERSION= 0.25.1
+PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= devel
diff --git a/devel/libgit2/files/patch-src_openssl__stream.h b/devel/libgit2/files/patch-src_openssl__stream.h
new file mode 100644
index 000000000000..c895994389ab
--- /dev/null
+++ b/devel/libgit2/files/patch-src_openssl__stream.h
@@ -0,0 +1,15 @@
+Fix build with LibreSSL
+
+https://github.com/libgit2/libgit2/commit/42ad85e
+
+--- src/openssl_stream.h.orig 2017-01-09 20:26:45 UTC
++++ src/openssl_stream.h
+@@ -27,7 +27,7 @@ extern int git_openssl_stream_new(git_stream **out, co
+
+
+
+-# if OPENSSL_VERSION_NUMBER < 0x10100000L
++# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+
+ GIT_INLINE(BIO_METHOD*) BIO_meth_new(int type, const char *name)
+ {