libass: fix compilation with older versions of libass
[vlc.git] / contrib / src / xcb / rules.mak
blobc09e555bfd2b4dfee2e3c32e8bf7626ce70a6cfa
1 # X protocol C language Bindings
3 XCB_VERSION := 1.12
4 XCB_URL := http://xcb.freedesktop.org/dist/libxcb-$(XCB_VERSION).tar.bz2
6 ifdef HAVE_LINUX
7 ifndef HAVE_ANDROID
8 PKGS += xcb
9 endif
10 endif
12 ifeq ($(call need_pkg,"xcb >= 1.6 xcb-shm xcb-composite xcb-xv >= 1.1.90.1"),)
13 # xcb-randr >= 1.3 is not that useful
14 PKGS_FOUND += xcb
15 endif
17 $(TARBALLS)/libxcb-$(XCB_VERSION).tar.bz2:
18 $(call download,$(XCB_URL))
20 .sum-xcb: libxcb-$(XCB_VERSION).tar.bz2
22 libxcb: libxcb-$(XCB_VERSION).tar.bz2 .sum-xcb
23 $(UNPACK)
24 $(call pkg_static,"xcb.pc.in")
25 $(MOVE)
27 XCBCONF := \
28 --enable-composite \
29 --disable-damage \
30 --disable-dpms \
31 --disable-dri2 \
32 --disable-glx \
33 --enable-randr \
34 --enable-render \
35 --disable-resource \
36 --disable-screensaver \
37 --enable-shape \
38 --enable-shm \
39 --disable-sync \
40 --disable-xevie \
41 --enable-xfixes \
42 --disable-xfree86-dri \
43 --disable-xinerama \
44 --disable-xinput \
45 --disable-xprint \
46 --disable-selinux \
47 --disable-xtest \
48 --enable-xv \
49 --disable-xvmc \
50 --without-doxygen \
51 $(HOSTCONF)
53 DEPS_xcb = xau $(DEPS_xau) xcb-proto $(DEPS_xcb-proto)
55 .xcb: libxcb
56 cd $< && $(HOSTVARS) ./configure $(XCBCONF)
57 cd $< && $(MAKE) install
58 touch $@