vlc | branch: master | Thomas Guillem <[email protected]> | Fri Jun 15 09:36:24 
2018 +0200| [9d230bfe8c14dcfe176b30cc399d34086e00fa1e] | committer: Thomas 
Guillem

contrib: xcb: add pthread-stubs dependency

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

 contrib/src/pthread-stubs/SHA512SUMS |  1 +
 contrib/src/pthread-stubs/rules.mak  | 17 +++++++++++++++++
 contrib/src/xcb/rules.mak            |  2 +-
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/contrib/src/pthread-stubs/SHA512SUMS 
b/contrib/src/pthread-stubs/SHA512SUMS
new file mode 100644
index 0000000000..317b7c1c37
--- /dev/null
+++ b/contrib/src/pthread-stubs/SHA512SUMS
@@ -0,0 +1 @@
+0fec563f3833b84311b32cb13a4fd9832aeb0204c65b1541bf453d5d35693b2267c3cee656e00a4b8533b07a8f6320ca5c3672dcf8ab047cdac8628154c08954
  libpthread-stubs-0.4.tar.bz2
diff --git a/contrib/src/pthread-stubs/rules.mak 
b/contrib/src/pthread-stubs/rules.mak
new file mode 100644
index 0000000000..13de9daa6d
--- /dev/null
+++ b/contrib/src/pthread-stubs/rules.mak
@@ -0,0 +1,17 @@
+PTHREAD_STUBS_VERSION := 0.4
+PTHREAD_STUBS_URL := 
https://xcb.freedesktop.org/dist/libpthread-stubs-$(PTHREAD_STUBS_VERSION).tar.bz2
+
+$(TARBALLS)/libpthread-stubs-$(PTHREAD_STUBS_VERSION).tar.bz2:
+       $(call download,$(PTHREAD_STUBS_URL))
+
+.sum-pthread-stubs: libpthread-stubs-$(PTHREAD_STUBS_VERSION).tar.bz2
+
+libpthread-stubs: libpthread-stubs-$(PTHREAD_STUBS_VERSION).tar.bz2 
.sum-pthread-stubs
+       $(UNPACK)
+       $(call pkg_static,"pthread-stubs.pc.in")
+       $(MOVE)
+
+.pthread-stubs: libpthread-stubs
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+       cd $< && $(MAKE) install
+       touch $@
diff --git a/contrib/src/xcb/rules.mak b/contrib/src/xcb/rules.mak
index c09e555bfd..fba6123647 100644
--- a/contrib/src/xcb/rules.mak
+++ b/contrib/src/xcb/rules.mak
@@ -50,7 +50,7 @@ XCBCONF := \
        --without-doxygen \
        $(HOSTCONF)
 
-DEPS_xcb = xau $(DEPS_xau) xcb-proto $(DEPS_xcb-proto)
+DEPS_xcb = pthread-stubs xau $(DEPS_xau) xcb-proto $(DEPS_xcb-proto)
 
 .xcb: libxcb
        cd $< && $(HOSTVARS) ./configure $(XCBCONF)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to