contrib: and libxcb and xcb-util
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Sep 2009 18:36:26 +0000 (21:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Sep 2009 19:21:38 +0000 (22:21 +0300)
extras/contrib/src/Makefile
extras/contrib/src/packages.mak

index b1f7354..dd4091c 100644 (file)
@@ -2498,6 +2498,61 @@ CLEAN_PKG += gsm
 DISTCLEAN_PKG += gsm-$(GSM_VERSION).tar.gz
 
 
+# ***************************************************************************
+# X11 C Bindings
+# ***************************************************************************
+
+libxcb-$(XCB_VERSION).tar.bz2:
+       $(WGET) $(XCB_URL)/$@
+
+libxcb: libxcb-$(XCB_VERSION).tar.bz2
+       -rm -rf $@
+       bzcat $< | tar xf -
+       mv libxcb-$(XCB_VERSION) $@
+       touch $@
+
+.xcb: libxcb
+       cd $< && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) \
+               --disable-composite \
+               --disable-damage \
+               --disable-dpms \
+               --disable-glx \
+               --enable-randr \
+               --disable-record \
+               --enable-render \
+               --disable-resource \
+               --disable-screensaver \
+               --disable-shape \
+               --enable-shm \
+               --disable-sync \
+               --disable-xevie \
+               --disable-xfixes \
+               --disable-xfree86-dri \
+               --disable-xinerama \
+               --disable-xinput \
+               --disable-xprint \
+               --disable-selinux \
+               --disable-xtest \
+               --enable-xv \
+               --disable-xvmc \
+               --disable-build-docs
+       cd $< && make install
+       touch $@
+
+xcb-util-$(XCB_UTIL_VERSION).tar.bz2:
+       $(WGET) $(XCB_UTIL_URL)/$@
+
+xcb-util: xcb-util-$(XCB_UTIL_VERSION).tar.bz2
+       -rm -rf $@
+       bzcat $< | tar xf -
+       mv xcb-util-$(XCB_UTIL_VERSION) $@
+       touch $@
+
+.xcb-util: xcb-util .xcb
+       cd $< && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX)
+       cd $< && make install
+       touch $@
+
 
 # ***************************************************************************
 # Some cleaning
index cd1938f..1a19ad3 100644 (file)
@@ -231,3 +231,7 @@ GSM_URL=http://user.cs.tu-berlin.de/~jutta/gsm/gsm-$(GSM_VERSION).tar.gz
 SPARKLE_VERSION=1.5b6-vlc
 #SPARKLE_URL=http://sparkle.andymatuschak.org/files/Sparkle%20$(SPARKLE_VERSION).zip
 SPARKLE_URL=$(VIDEOLAN)/testing/contrib/Sparkle-$(SPARKLE_VERSION).zip
+XCB_VERSION=1.2
+XCB_URL=http://xcb.freedesktop.org/dist/
+XCB_UTIL_VERSION=0.2
+XCB_UTIL_URL=$(XCB_URL)