diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2010-03-07 23:09:24 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2010-03-07 23:14:30 +0100 |
commit | 48b82779acbe28349d2111a86ac2dde95adb59fd (patch) | |
tree | ce91bf48d1e5e66ed93711f0ecd89be10b45d530 /packages/x11/xcbutil | |
parent | feb16c4606efa24684e451e4db7d14d9864b5afe (diff) | |
download | embtoolkit-48b82779acbe28349d2111a86ac2dde95adb59fd.tar.gz embtoolkit-48b82779acbe28349d2111a86ac2dde95adb59fd.tar.bz2 embtoolkit-48b82779acbe28349d2111a86ac2dde95adb59fd.tar.xz |
Packages: X Windowing system: Massive X windowing system packages introduction
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'packages/x11/xcbutil')
-rw-r--r-- | packages/x11/xcbutil/xcbutil.kconfig | 43 | ||||
-rw-r--r-- | packages/x11/xcbutil/xcbutil.mk | 114 |
2 files changed, 157 insertions, 0 deletions
diff --git a/packages/x11/xcbutil/xcbutil.kconfig b/packages/x11/xcbutil/xcbutil.kconfig new file mode 100644 index 0000000..d7d2ccd --- /dev/null +++ b/packages/x11/xcbutil/xcbutil.kconfig @@ -0,0 +1,43 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbutil.kconfig +# \brief xcbutil.kconfig of Embtoolkit +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date March 2010 +################################################################################ + +config EMBTK_HAVE_XCBUTIL + bool "Have xcbutil" + select EMBTK_HAVE_LIBXCB + help + xcb-util for XCB (X windowing system related). +choice + prompt "xcbutil version you wish" + depends on EMBTK_HAVE_XCBUTIL + help + Here you can choose which version of xcb-util you want to use. + + config EMBTK_XCBUTIL_VERSION_0_3_6 + bool "xcb-util-0.3.6" +endchoice + +config EMBTK_XCBUTIL_VERSION_STRING + string + default "0.3.6" if EMBTK_XCBUTIL_VERSION_0_3_6 + diff --git a/packages/x11/xcbutil/xcbutil.mk b/packages/x11/xcbutil/xcbutil.mk new file mode 100644 index 0000000..32552bc --- /dev/null +++ b/packages/x11/xcbutil/xcbutil.mk @@ -0,0 +1,114 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# Copyright(C) 2010 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +################################################################################ +# +# \file xcbutil.mk +# \brief xcbutil.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date March 2009 +################################################################################ + +XCBUTIL_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XCBUTIL_VERSION_STRING))) +XCBUTIL_SITE := http://xcb.freedesktop.org/dist +XCBUTIL_PACKAGE := xcb-util-$(XCBUTIL_VERSION).tar.bz2 +XCBUTIL_BUILD_DIR := $(PACKAGES_BUILD)/xcb-util-$(XCBUTIL_VERSION) + +XCBUTIL_BINS = +XCBUTIL_SBINS = +XCBUTIL_INCLUDES = xcb/xcb_atom.h xcb/xcb_aux.h xcb/xcb_bitops.h \ + xcb/xcb_event.h xcb/xcb_icccm.h xcb/xcb_image.h \ + xcb/xcb_keysyms.h xcb/xcb_pixel.h xcb/xcb_property.h \ + xcb/xcb_renderutil.h xcb/xcb_reply.h +XCBUTIL_LIBS = libxcb-atom.* libxcb-aux.* libxcb-event.* libxcb-icccm.* \ + libxcb-image.* libxcb-keysyms.* libxcb-property.* \ + libxcb-render-util.* libxcb-reply.* +XCBUTIL_PKGCONFIGS = xcb-atom.pc xcb-aux.pc xcb-event.pc xcb-icccm.pc \ + xcb-image.pc xcb-keysyms.pc xcb-property.pc xcb-renderutil.pc \ + xcb-reply.pc + +XCBUTIL_DEPS = libxcb_install + +xcbutil_install: $(XCBUTIL_BUILD_DIR)/.installed + +$(XCBUTIL_BUILD_DIR)/.installed: $(XCBUTIL_DEPS) download_xcbutil \ + $(XCBUTIL_BUILD_DIR)/.decompressed $(XCBUTIL_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xcbutil-$(XCBUTIL_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(XCBUTIL_BUILD_DIR)) + $(Q)$(MAKE) -C $(XCBUTIL_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XCBUTIL_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + $(Q)$(MAKE) $(XCBUTIL_BUILD_DIR)/.patchlibtool + @touch $@ + +download_xcbutil: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XCBUTIL_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XCBUTIL_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XCBUTIL_PACKAGE) \ + $(XCBUTIL_SITE)/$(XCBUTIL_PACKAGE) + +$(XCBUTIL_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XCBUTIL_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(XCBUTIL_PACKAGE) + @touch $@ + +$(XCBUTIL_BUILD_DIR)/.configured: + cd $(XCBUTIL_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) \ + CXX=$(TARGETCXX_CACHED) \ + AR=$(TARGETAR) \ + RANLIB=$(TARGETRANLIB) \ + AS=$(CROSS_COMPILE)as \ + LD=$(TARGETLD) \ + NM=$(TARGETNM) \ + STRIP=$(TARGETSTRIP) \ + OBJDUMP=$(TARGETOBJDUMP) \ + OBJCOPY=$(TARGETOBJCOPY) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ + CPPFLGAS="-I$(SYSROOT)/usr/include" \ + PKG_CONFIG=$(PKGCONFIG_BIN) \ + PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ + ./configure $XORG_CONFIG --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ + --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) --prefix=/usr + @touch $@ + +xcbutil_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xcbutil-$(XCBUTIL_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XCBUTIL_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XCBUTIL_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XCBUTIL_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XCBUTIL_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XCBUTIL_PKGCONFIGS) + +$(XCBUTIL_BUILD_DIR)/.patchlibtool: + @XCBUTIL_LT_FILES=`find $(SYSROOT)/usr/$(LIBDIR)/libxcb-* -type f -name *.la`; \ + for i in $$XCBUTIL_LT_FILES; \ + do \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-event.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-event.la ;" $$i; \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-aux.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-aux.la ;" $$i; \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-property.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-property.la ;" $$i; \ + sed \ + -i "s; /usr/$(LIBDIR)/libxcb-atom.la ; $(SYSROOT)/usr/$(LIBDIR)/libxcb-atom.la ;" $$i; \ + done + |