[vlc-commits] contribs: add dshow

Rémi Denis-Courmont git at videolan.org
Tue Jun 28 18:45:30 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 27 11:57:28 2011 +0300| [538e73e87a10a5049c33f7b37b16573b6881f4f2] | committer: Rémi Denis-Courmont

contribs: add dshow

And DxVA2 (why is that in DirectShow?!).
And Direct2D (untested - does not work in older contrib for me).

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

 contrib/src/dshow/SHA512SUMS |    2 ++
 contrib/src/dshow/rules.mak  |   35 +++++++++++++++++++++++++++++++++++
 contrib/tarballs/.gitignore  |    1 +
 3 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/contrib/src/dshow/SHA512SUMS b/contrib/src/dshow/SHA512SUMS
new file mode 100644
index 0000000..ffab58d
--- /dev/null
+++ b/contrib/src/dshow/SHA512SUMS
@@ -0,0 +1,2 @@
+779c4a36a4276c6e18017b898903cdf162c186b2f8de22ac12d995b316fe40d8277374eb88c695e8a760497239ad176a85ea4ecccd0df841283f95ff591997a7  dshow-headers-oss.tar.bz2
+e62868480379fbb7bc7a433836c6884d51e35ca2d903b9b1f0944250a9d87814be087237240ce84e6d173ea84faed5ea834f2b38800e5ac2c2d8365726defb6a  dxva2api.h
diff --git a/contrib/src/dshow/rules.mak b/contrib/src/dshow/rules.mak
new file mode 100644
index 0000000..f9bd00b
--- /dev/null
+++ b/contrib/src/dshow/rules.mak
@@ -0,0 +1,35 @@
+# DirectX headers
+
+DSHOW_HEADERS_URL := $(CONTRIB_VIDEOLAN)/dshow-headers-oss.tar.bz2
+DXVA2_URL := $(CONTRIB_VIDEOLAN)/dxva2api.h
+D2D_HASH := b1affb70c021200b410eccd377ad5aeef2c5a85b
+D2D_URL := http://nodeload.github.com/2of1/d2d1headers/tarball/master
+# FIXME: ^ D2D not working
+
+ifdef HAVE_WIN32
+PKGS += dshow
+endif
+
+$(TARBALLS)/dshow-headers-oss.tar.bz2:
+	$(DOWNLOAD) $(DSHOW_HEADERS_URL)
+
+$(TARBALLS)/dxva2api.h:
+	$(DOWNLOAD) $(DXVA2_URL)
+
+$(TARBALLS)/d2d_headers.tar.gz:
+	$(DOWNLOAD) $(D2D_URL) -O $@
+
+DSHOW_SOURCES := dshow-headers-oss.tar.bz2 dxva2api.h d2d_headers.tar.gz
+
+.sum-dshow: $(DSHOW_SOURCES:%=$(TARBALLS)/%)
+	$(CHECK_SHA512)
+	touch $@
+
+.dshow: $(DSHOW_SOURCES:%=$(TARBALLS)/%) .sum-dshow
+	mkdir -p -- "$(PREFIX)/include"
+	tar xjf $< -C "$(PREFIX)/include" \
+		--wildcards --no-anchored '*.h' --strip-components=1
+	tar xzf $(TARBALLS)/d2d_headers.tar.gz -C "$(PREFIX)/include" \
+		 --wildcards --no-anchored '*.h' --strip-components=1
+	cp $(TARBALLS)/dxva2api.h "$(PREFIX)/include"
+	touch $@
diff --git a/contrib/tarballs/.gitignore b/contrib/tarballs/.gitignore
index 90a2fc0..c5a1b09 100644
--- a/contrib/tarballs/.gitignore
+++ b/contrib/tarballs/.gitignore
@@ -1,2 +1,3 @@
 *.tar.*
 *.zip
+*.h



More information about the vlc-commits mailing list