[vlc-devel] [PATCH] Contribs: add libnfs support

Jean-Baptiste Kempf jb at videolan.org
Fri Jan 8 19:16:35 CET 2016


---
 contrib/src/nfs/SHA512SUMS |  1 +
 contrib/src/nfs/rules.mak  | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 contrib/src/nfs/SHA512SUMS
 create mode 100644 contrib/src/nfs/rules.mak

diff --git a/contrib/src/nfs/SHA512SUMS b/contrib/src/nfs/SHA512SUMS
new file mode 100644
index 0000000..30ecaba
--- /dev/null
+++ b/contrib/src/nfs/SHA512SUMS
@@ -0,0 +1 @@
+2a0e11dde5a2c4d25fcf1040d04ad984fe3b2e2ce5f544d602becb55aebdabbfe29a3b961d3db7d034c918862b540d3a03735bbbad0606ff3a128c50c2dad666  libnfs-1.9.8.tar.gz
diff --git a/contrib/src/nfs/rules.mak b/contrib/src/nfs/rules.mak
new file mode 100644
index 0000000..49b4c15
--- /dev/null
+++ b/contrib/src/nfs/rules.mak
@@ -0,0 +1,24 @@
+# NFS
+NFS_VERSION := 1.9.8
+NFS_URL := https://github.com/sahlberg/libnfs/archive/libnfs-$(NFS_VERSION).tar.gz
+
+PKGS += nfs
+ifeq ($(call need_pkg,"libnfs"),)
+PKGS_FOUND += nfs
+endif
+
+$(TARBALLS)/libnfs-$(NFS_VERSION).tar.gz:
+	$(call download,$(NFS_URL))
+
+.sum-nfs: libnfs-$(NFS_VERSION).tar.gz
+
+nfs: libnfs-$(NFS_VERSION).tar.gz .sum-nfs
+	$(UNPACK)
+	mv libnfs-libnfs-$(NFS_VERSION) libnfs-$(NFS_VERSION)
+	$(MOVE)
+
+.nfs: nfs
+	cd $< && ./bootstrap
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@
-- 
2.7.0.rc3



More information about the vlc-devel mailing list