Commit 64aa5fae authored by Varphone Wong's avatar Varphone Wong Committed by Jean-Baptiste Kempf

contrib: check is dxva2api.h already exists before install

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7c551412
......@@ -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 $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment