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

Varphone Wong git at videolan.org
Tue Sep 4 23:31:06 CEST 2012


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

contrib: check is dxva2api.h already exists before install

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 64aa5fae9243b27c5c29121c90a6f7739f017e49)

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

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

 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 2d5b2ee..103371b 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