summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.com>2010-06-28 00:19:35 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.com>2010-06-28 00:19:35 +0200
commit63b06499dc7c4e24f7fc5b63cc96056e41418ac9 (patch)
tree3337f53f7daf9152540d8f3d4cc023fa994c0a7f
parent61b7d5b10801ffdcf14f86225e9e0deca8f11704 (diff)
downloadembtoolkit-63b06499dc7c4e24f7fc5b63cc96056e41418ac9.tar.gz
embtoolkit-63b06499dc7c4e24f7fc5b63cc96056e41418ac9.tar.bz2
embtoolkit-63b06499dc7c4e24f7fc5b63cc96056e41418ac9.tar.xz
Packages: X11: NEW add libXcomposite-0.4.2
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.com>
-rw-r--r--packages/x11/libxcomposite/libxcomposite.kconfig50
-rw-r--r--packages/x11/libxcomposite/libxcomposite.mk103
-rw-r--r--packages/x11/x11.kconfig1
-rw-r--r--packages/x11/x11.mk5
4 files changed, 159 insertions, 0 deletions
diff --git a/packages/x11/libxcomposite/libxcomposite.kconfig b/packages/x11/libxcomposite/libxcomposite.kconfig
new file mode 100644
index 0000000..d57f97e
--- /dev/null
+++ b/packages/x11/libxcomposite/libxcomposite.kconfig
@@ -0,0 +1,50 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# 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 3 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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libxcomposite.kconfig
+# \brief libxcomposite.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date June 2010
+################################################################################
+
+config EMBTK_HAVE_LIBXCOMPOSITE
+ bool "Have libXcomposite"
+ select EMBTK_HAVE_XPROTO
+ select EMBTK_HAVE_COMPOSITEPROTO
+ select EMBTK_HAVE_LIBXFIXES
+ help
+ libXcomposite description
+choice
+ prompt "libXcomposite version you wish"
+ depends on EMBTK_HAVE_LIBXCOMPOSITE
+ help
+ Here you can choose which version of libXcomposite you want to use.
+
+ config EMBTK_LIBXCOMPOSITE_VERSION_0_4_2
+ bool "libXcomposite-0.4.2"
+endchoice
+
+config EMBTK_LIBXCOMPOSITE_VERSION_STRING
+ string
+ default "0.4.2" if EMBTK_LIBXCOMPOSITE_VERSION_0_4_2
+
+config EMBTK_LIBXCOMPOSITE_NEED_PATCH
+ bool
+
+
diff --git a/packages/x11/libxcomposite/libxcomposite.mk b/packages/x11/libxcomposite/libxcomposite.mk
new file mode 100644
index 0000000..2719564
--- /dev/null
+++ b/packages/x11/libxcomposite/libxcomposite.mk
@@ -0,0 +1,103 @@
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2010 Abdoulaye Walsimou GAYE. All rights reserved.
+#
+# 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 3 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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libxcomposite.mk
+# \brief libxcomposite.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date June 2010
+################################################################################
+
+LIBXCOMPOSITE_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXCOMPOSITE_VERSION_STRING)))
+LIBXCOMPOSITE_SITE := http://xorg.freedesktop.org/archive/individual/lib
+LIBXCOMPOSITE_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/libxcomposite/$(LIBXCOMPOSITE_VERSION)
+LIBXCOMPOSITE_PACKAGE := libXcomposite-$(LIBXCOMPOSITE_VERSION).tar.bz2
+LIBXCOMPOSITE_BUILD_DIR := $(PACKAGES_BUILD)/libXcomposite-$(LIBXCOMPOSITE_VERSION)
+
+LIBXCOMPOSITE_BINS =
+LIBXCOMPOSITE_SBINS =
+LIBXCOMPOSITE_INCLUDES = X11/extensions/Xcomposite.h
+LIBXCOMPOSITE_LIBS = libXcomposite.*
+LIBXCOMPOSITE_PKGCONFIGS = xcomposite.pc
+
+LIBXCOMPOSITE_DEPS = xproto_install libxfixes_install compositeproto_install
+
+libxcomposite_install: $(LIBXCOMPOSITE_BUILD_DIR)/.installed
+
+$(LIBXCOMPOSITE_BUILD_DIR)/.installed: $(LIBXCOMPOSITE_DEPS) download_libxcomposite \
+ $(LIBXCOMPOSITE_BUILD_DIR)/.decompressed $(LIBXCOMPOSITE_BUILD_DIR)/.configured
+ $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \
+ libxcomposite-$(LIBXCOMPOSITE_VERSION) in your root filesystem...")
+ $(Q)$(MAKE) -C $(LIBXCOMPOSITE_BUILD_DIR) $(J)
+ $(Q)$(MAKE) -C $(LIBXCOMPOSITE_BUILD_DIR) DESTDIR=$(SYSROOT) install
+ $(Q)$(MAKE) libtool_files_adapt
+ $(Q)$(MAKE) pkgconfig_files_adapt
+ @touch $@
+
+download_libxcomposite:
+ $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXCOMPOSITE_PACKAGE) \
+ if necessary...")
+ @test -e $(DOWNLOAD_DIR)/$(LIBXCOMPOSITE_PACKAGE) || \
+ wget -O $(DOWNLOAD_DIR)/$(LIBXCOMPOSITE_PACKAGE) \
+ $(LIBXCOMPOSITE_SITE)/$(LIBXCOMPOSITE_PACKAGE)
+ifeq ($(CONFIG_EMBTK_LIBXCOMPOSITE_NEED_PATCH),y)
+ @test -e $(DOWNLOAD_DIR)/libxcomposite-$(LIBXCOMPOSITE_VERSION).patch || \
+ wget -O $(DOWNLOAD_DIR)/libxcomposite-$(LIBXCOMPOSITE_VERSION).patch \
+ $(LIBXCOMPOSITE_PATCH_SITE)/libxcomposite-$(LIBXCOMPOSITE_VERSION)-*.patch
+endif
+
+$(LIBXCOMPOSITE_BUILD_DIR)/.decompressed:
+ $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXCOMPOSITE_PACKAGE) ...")
+ @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(LIBXCOMPOSITE_PACKAGE)
+ifeq ($(CONFIG_EMBTK_LIBXCOMPOSITE_NEED_PATCH),y)
+ @cd $(PACKAGES_BUILD)/libxcomposite-$(LIBXCOMPOSITE_VERSION); \
+ patch -p1 < $(DOWNLOAD_DIR)/libxcomposite-$(LIBXCOMPOSITE_VERSION).patch
+endif
+ @touch $@
+
+$(LIBXCOMPOSITE_BUILD_DIR)/.configured:
+ $(Q)cd $(LIBXCOMPOSITE_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 --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \
+ --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \
+ --prefix=/usr
+ @touch $@
+
+libxcomposite_clean:
+ $(call EMBTK_GENERIC_MESSAGE,"cleanup libxcomposite-$(LIBXCOMPOSITE_VERSION)...")
+ $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXCOMPOSITE_BINS)
+ $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXCOMPOSITE_SBINS)
+ $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXCOMPOSITE_INCLUDES)
+ $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXCOMPOSITE_LIBS)
+ $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXCOMPOSITE_PKGCONFIGS)
+
diff --git a/packages/x11/x11.kconfig b/packages/x11/x11.kconfig
index 84e1609..91c287d 100644
--- a/packages/x11/x11.kconfig
+++ b/packages/x11/x11.kconfig
@@ -54,6 +54,7 @@ source packages/x11/libpthreadstubs/libpthreadstubs.kconfig
source packages/x11/libx11/libx11.kconfig
source packages/x11/libxau/libxau.kconfig
source packages/x11/libxcb/libxcb.kconfig
+source packages/x11/libxcomposite/libxcomposite.kconfig
source packages/x11/libxext/libxext.kconfig
source packages/x11/libxfixes/libxfixes.kconfig
source packages/x11/libxfont/libxfont.kconfig
diff --git a/packages/x11/x11.mk b/packages/x11/x11.mk
index 7858df2..e2e207b 100644
--- a/packages/x11/x11.mk
+++ b/packages/x11/x11.mk
@@ -146,6 +146,11 @@ include $(EMBTK_ROOT)/packages/x11/libxcb/libxcb.mk
ROOTFS_COMPONENTS_CLEAN += libxcb_clean
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXCB) += libxcb_install
+#libxcomposite
+include $(EMBTK_ROOT)/packages/x11/libxcomposite/libxcomposite.mk
+ROOTFS_COMPONENTS_CLEAN += libxcomposite_clean
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXCOMPOSITE) += libxcomposite_install
+
#libXext
include $(EMBTK_ROOT)/packages/x11/libxext/libxext.mk
ROOTFS_COMPONENTS_CLEAN += libxext_clean