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

Varphone Wong varphone at gmail.com
Sat Aug 18 07:47:07 CEST 2012


---
 contrib/src/directx/rules.mak | 2 +-
 1 个文件被修改,插入 1 行(+),删除 1 行(-)

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 $@
-- 
1.7.11.2




More information about the vlc-devel mailing list