[vlc-commits] Contribs: add headers for CrystalHD for win32

Jean-Baptiste Kempf git at videolan.org
Wed Nov 30 13:26:02 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Nov 30 03:31:28 2011 +0100| [5e91281e3ca9965a3f408537446065f96afff243] | committer: Jean-Baptiste Kempf

Contribs: add headers for CrystalHD for win32

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

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

 contrib/src/crystalhd/SHA512SUMS  |    1 +
 contrib/src/crystalhd/mingw.patch |   27 +++++++++++++++++++++++++++
 contrib/src/crystalhd/rules.mak   |   16 ++++++++++++++++
 3 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/contrib/src/crystalhd/SHA512SUMS b/contrib/src/crystalhd/SHA512SUMS
new file mode 100644
index 0000000..5ec8285
--- /dev/null
+++ b/contrib/src/crystalhd/SHA512SUMS
@@ -0,0 +1 @@
+da996732b1a4ff86f9bb36ca70cd203c0456d613b0ebdcddf4a2e33c2dd6dd9c3211bf6f3df5dd4c6e6c4a5a53d2ba1f7cd00eff2b2bd247195b8870ebc73bcd  crystalhd_lgpl_includes.zip
diff --git a/contrib/src/crystalhd/mingw.patch b/contrib/src/crystalhd/mingw.patch
new file mode 100644
index 0000000..539a1e7
--- /dev/null
+++ b/contrib/src/crystalhd/mingw.patch
@@ -0,0 +1,27 @@
+--- bc_dts_types.h.old	2011-11-30 03:20:14.715875756 +0100
++++ bc_dts_types.h	2011-11-30 03:21:25.692227718 +0100
+@@ -38,7 +38,7 @@
+ typedef int	BOOL;
+ #endif
+ 
+-#ifdef WIN32
++#ifdef _MSC_VER
+     typedef unsigned __int64  	U64;
+ #else
+     typedef unsigned long long  U64;
+@@ -81,6 +81,7 @@
+ 
+ #else
+ 
++#ifndef HAVE_STDINT_H
+ #ifndef uint64_t
+ typedef struct _uint64_t {
+ 	unsigned long low_dw;
+@@ -103,6 +104,7 @@
+ #ifndef uint8_t
+ typedef unsigned char	uint8_t;
+ #endif
++#endif /* STDINT_H */
+ #endif
+ 
+ #endif
diff --git a/contrib/src/crystalhd/rules.mak b/contrib/src/crystalhd/rules.mak
new file mode 100644
index 0000000..1da3107
--- /dev/null
+++ b/contrib/src/crystalhd/rules.mak
@@ -0,0 +1,16 @@
+# CrystalHD headers
+
+CRYSTAL_HEADERS_URL := http://www.broadcom.com/docs/support/crystalhd/crystalhd_lgpl_includes.zip
+
+$(TARBALLS)/crystalhd_lgpl_includes.zip:
+	$(call download,$(CRYSTAL_HEADERS_URL))
+
+CRYSTAL_SOURCES := crystalhd_lgpl_includes.zip
+
+.sum-crystalhd: $(CRYSTAL_SOURCES)
+
+.crystalhd: $(CRYSTAL_SOURCES) .sum-crystalhd
+	mkdir -p -- "$(PREFIX)/include/libcrystalhd"
+	unzip $< -d "$(PREFIX)/include/libcrystalhd"
+	patch -p0 -f -d $(PREFIX)/include/libcrystalhd < ../src/crystalhd/mingw.patch
+	touch $@



More information about the vlc-commits mailing list