[vlc-commits] Contribs: add microdns package

Jean-Baptiste Kempf git at videolan.org
Mon Feb 8 23:17:49 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Feb  8 23:17:33 2016 +0100| [a3c777dbadefa2ce060e1c24fa3e7135454eabef] | committer: Jean-Baptiste Kempf

Contribs: add microdns package

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

 contrib/src/microdns/SHA512SUMS |    1 +
 contrib/src/microdns/rules.mak  |   22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/contrib/src/microdns/SHA512SUMS b/contrib/src/microdns/SHA512SUMS
new file mode 100644
index 0000000..44ddb77
--- /dev/null
+++ b/contrib/src/microdns/SHA512SUMS
@@ -0,0 +1 @@
+8bdfb93a155514d0d284d677cc34cd4a7b2fda099f6618a014fa3a2816bb67cebf882efc5809ef023ba542ba821cb126767f9c73f96ba600d95583d71d6b5d08  libmicrodns-0.0.1.tar.gz
diff --git a/contrib/src/microdns/rules.mak b/contrib/src/microdns/rules.mak
new file mode 100644
index 0000000..712757e
--- /dev/null
+++ b/contrib/src/microdns/rules.mak
@@ -0,0 +1,22 @@
+# libmicrodns
+
+LIBMICRODNS_VERSION := 0.0.1
+LIBMICRODNS_URL := https://github.com/videolabs/libmicrodns/releases/download/$(LIBMICRODNS_VERSION)/microdns-$(LIBMICRODNS_VERSION).tar.gz
+
+ifeq ($(call need_pkg,"microdns >= 0.0.1"),)
+PKGS_FOUND += libmicrodns
+endif
+
+$(TARBALLS)/libmicrodns-$(LIBMICRODNS_VERSION).tar.gz:
+	$(call download,$(LIBMICRODNS_URL))
+
+.sum-microdns: $(TARBALLS)/libmicrodns-$(LIBMICRODNS_VERSION).tar.gz
+
+microdns: libmicrodns-$(LIBMICRODNS_VERSION).tar.gz .sum-microdns
+	$(UNPACK)
+	mv microdns-$(LIBMICRODNS_VERSION) microdns
+
+.microdns: microdns
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list