################################################################################ # Embtoolkit # Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that 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, see . # ################################################################################ # # \file xcbutil.mk # \brief xcbutil.mk of Embtoolkit # \author Abdoulaye Walsimou GAYE # \date March 2009 ################################################################################ XCBUTIL_NAME := xcb-util XCBUTIL_VERSION := $(call embtk_get_pkgversion,xcbutil) XCBUTIL_SITE := http://xcb.freedesktop.org/dist XCBUTIL_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror XCBUTIL_PACKAGE := xcb-util-$(XCBUTIL_VERSION).tar.bz2 XCBUTIL_SRC_DIR := $(embtk_pkgb)/xcb-util-$(XCBUTIL_VERSION) XCBUTIL_BUILD_DIR := $(embtk_pkgb)/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 = gperf_host_install libxcb_install define embtk_postinstallonce_xcbutil $(MAKE) $(XCBUTIL_BUILD_DIR)/.patchlibtool endef $(XCBUTIL_BUILD_DIR)/.patchlibtool: $(Q)XCBUTIL_LT_FILES=`find $(embtk_sysroot)/usr/$(LIBDIR)/libxcb-* -type f -name *.la`; \ for i in $$XCBUTIL_LT_FILES; \ do \ sed \ -i "s; /usr/$(LIBDIR)/libxcb-event.la ; $(embtk_sysroot)/usr/$(LIBDIR)/libxcb-event.la ;" $$i; \ sed \ -i "s; /usr/$(LIBDIR)/libxcb-aux.la ; $(embtk_sysroot)/usr/$(LIBDIR)/libxcb-aux.la ;" $$i; \ sed \ -i "s; /usr/$(LIBDIR)/libxcb-property.la ; $(embtk_sysroot)/usr/$(LIBDIR)/libxcb-property.la ;" $$i; \ sed \ -i "s; /usr/$(LIBDIR)/libxcb-atom.la ; $(embtk_sysroot)/usr/$(LIBDIR)/libxcb-atom.la ;" $$i; \ done