[vlc-commits] contrib: add libsmb2

Thomas Guillem git at videolan.org
Sat Jul 7 22:01:12 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Apr 19 15:19:58 2018 +0200| [b56d2630dda483a6d949979160cba5f1805cd2d6] | committer: Thomas Guillem

contrib: add libsmb2

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b56d2630dda483a6d949979160cba5f1805cd2d6
---

 contrib/src/smb2/SHA512SUMS |  1 +
 contrib/src/smb2/rules.mak  | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/contrib/src/smb2/SHA512SUMS b/contrib/src/smb2/SHA512SUMS
new file mode 100644
index 0000000000..eae3dd89c5
--- /dev/null
+++ b/contrib/src/smb2/SHA512SUMS
@@ -0,0 +1 @@
+5e7101e54a4a95eae2ed5b05dfb51a33e9d4ce19275a405fbb1e86f9e9fe197de53b41c301ca992f19a03e5117ccc90d0acb174eb9c000c71674a0dbacf57614  libsmb2-2.0.0.tar.gz
diff --git a/contrib/src/smb2/rules.mak b/contrib/src/smb2/rules.mak
new file mode 100644
index 0000000000..81937b95a7
--- /dev/null
+++ b/contrib/src/smb2/rules.mak
@@ -0,0 +1,27 @@
+# SMB2
+SMB2_VERSION := 2.0.0
+SMB2_URL := https://github.com/sahlberg/libsmb2/archive/v$(SMB2_VERSION).tar.gz
+
+ifdef BUILD_NETWORK
+ifndef HAVE_WIN32
+PKGS += smb2
+endif
+endif
+ifeq ($(call need_pkg,"smb2"),)
+PKGS_FOUND += smb2
+endif
+
+$(TARBALLS)/libsmb2-$(SMB2_VERSION).tar.gz:
+	$(call download_pkg,$(SMB2_URL),smb2)
+
+.sum-smb2: libsmb2-$(SMB2_VERSION).tar.gz
+
+smb2: libsmb2-$(SMB2_VERSION).tar.gz .sum-smb2
+	$(UNPACK)
+	$(MOVE)
+
+.smb2: smb2
+	cd $< && ./bootstrap
+	cd $< && $(HOSTVARS) ./configure --disable-examples --disable-werror --without-libkrb5 $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list