[vlc-devel] [PATCH] contrib: add libdsm and its dependency libtasn1

Felix Paul Kühne fkuehne at videolan.org
Mon Jul 7 19:21:46 CEST 2014


---
 contrib/src/libdsm/rules.mak   | 27 +++++++++++++++++++++++++++
 contrib/src/libtasn1/rules.mak | 24 ++++++++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 contrib/src/libdsm/rules.mak
 create mode 100644 contrib/src/libtasn1/rules.mak

diff --git a/contrib/src/libdsm/rules.mak b/contrib/src/libdsm/rules.mak
new file mode 100644
index 0000000..509781f
--- /dev/null
+++ b/contrib/src/libdsm/rules.mak
@@ -0,0 +1,27 @@
+# libdsm
+
+LIBDSM_GITURL := git://github.com/videolabs/libdsm.git
+LIBDSM_VERSION := git
+
+ifeq ($(call need_pkg,"libdsm"),)
+PKGS_FOUND += libdsm
+endif
+
+$(TARBALLS)/libdsm-git.tar.xz:
+	$(call download_git,$(LIBDSM_GITURL))
+
+.sum-libdsm: libdsm-$(LIBDSM_VERSION).tar.xz
+	$(warning Not implemented.)
+	touch $@
+
+libdsm: libdsm-$(LIBDSM_VERSION).tar.xz .sum-libdsm
+	$(UNPACK)
+	$(MOVE)
+
+DEPS_libdsm = libtasn1
+
+.libdsm: libdsm
+	cd $< && $(HOSTVARS) ./bootstrap
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@
diff --git a/contrib/src/libtasn1/rules.mak b/contrib/src/libtasn1/rules.mak
new file mode 100644
index 0000000..37f4675
--- /dev/null
+++ b/contrib/src/libtasn1/rules.mak
@@ -0,0 +1,24 @@
+# libtasn1
+
+LIBTASN1_VERSION := 3.7
+LIBTASN1_URL := $(GNU)/libtasn1/libtasn1-$(LIBTASN1_VERSION).tar.gz
+
+ifeq ($(call need_pkg,"libtasn1"),)
+PKGS_FOUND += libtasn1
+endif
+
+$(TARBALLS)/libtasn1-$(LIBTASN1_VERSION).tar.gz:
+	$(call download,$(LIBTASN1_URL))
+
+.sum-libtasn1: libtasn1-$(LIBTASN1_VERSION).tar.gz
+	$(warning $@ not implemented)
+	touch $@
+
+libtasn1: libtasn1-$(LIBTASN1_VERSION).tar.gz .sum-libtasn1
+	$(UNPACK)
+	$(MOVE)
+
+.libtasn1: libtasn1
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@
-- 
1.8.5.2 (Apple Git-48)




More information about the vlc-devel mailing list