[vlc-commits] contrib: check is dxva2api.h already exists before install

Varphone Wong git at videolan.org
Sun Aug 26 19:03:23 CEST 2012


vlc | branch: master | Varphone Wong <varphone at gmail.com> | Sat Aug 18 13:47:07 2012 +0800| [64aa5fae9243b27c5c29121c90a6f7739f017e49] | committer: Jean-Baptiste Kempf

contrib: check is dxva2api.h already exists before install

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 contrib/src/directx/rules.mak |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/directx/rules.mak b/contrib/src/directx/rules.mak
index 9092616..16bc3e3 100644
--- a/contrib/src/directx/rules.mak
+++ b/contrib/src/directx/rules.mak
@@ -20,5 +20,5 @@ $(TARBALLS)/dxva2api.h:
 .directx: directx-oss.tar.bz2 dxva2api.h .sum-directx
 	mkdir -p -- "$(PREFIX)/include"
 	tar xvjf $< -C "$(PREFIX)/include"
-	cp $(TARBALLS)/dxva2api.h "$(PREFIX)/include/"
+	$(CC) -E -include dxva2api.h - < /dev/null >& /dev/null || cp $(TARBALLS)/dxva2api.h "$(PREFIX)/include/"
 	touch $@



More information about the vlc-commits mailing list