From 33a4da0e55486af61e32f90350bbdac44d9008dc Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 27 Jun 2010 23:49:24 +0200 Subject: Packages: X11: NEW add libXfixes-4.0.5 Signed-off-by: Abdoulaye Walsimou Gaye --- packages/x11/libxfixes/libxfixes.kconfig | 49 +++++++++++++++ packages/x11/libxfixes/libxfixes.mk | 104 +++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 packages/x11/libxfixes/libxfixes.kconfig create mode 100644 packages/x11/libxfixes/libxfixes.mk diff --git a/packages/x11/libxfixes/libxfixes.kconfig b/packages/x11/libxfixes/libxfixes.kconfig new file mode 100644 index 0000000..71208e4 --- /dev/null +++ b/packages/x11/libxfixes/libxfixes.kconfig @@ -0,0 +1,49 @@ +################################################################################ +# Abdoulaye Walsimou GAYE +# 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 . +# +################################################################################ +# +# \file libxfixes.kconfig +# \brief libxfixes.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2010 +################################################################################ + +config EMBTK_HAVE_LIBXFIXES + bool "Have libXfixes" + select EMBTK_HAVE_FIXESPROTO + select EMBTK_HAVE_XPROTO + help + libXfixes description +choice + prompt "libxfixes version you wish" + depends on EMBTK_HAVE_LIBXFIXES + help + Here you can choose which version of libXfixes you want to use. + + config EMBTK_LIBXFIXES_VERSION_4_0_5 + bool "libXfixes-4.0.5" +endchoice + +config EMBTK_LIBXFIXES_VERSION_STRING + string + default "4.0.5" if EMBTK_LIBXFIXES_VERSION_4_0_5 + +config EMBTK_LIBXFIXES_NEED_PATCH + bool + + diff --git a/packages/x11/libxfixes/libxfixes.mk b/packages/x11/libxfixes/libxfixes.mk new file mode 100644 index 0000000..b878a1d --- /dev/null +++ b/packages/x11/libxfixes/libxfixes.mk @@ -0,0 +1,104 @@ +################################################################################ +# Abdoulaye Walsimou GAYE +# 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 . +# +################################################################################ +# +# \file libxfixes.mk +# \brief libxfixes.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2010 +################################################################################ + +LIBXFIXES_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXFIXES_VERSION_STRING))) +LIBXFIXES_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBXFIXES_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/libxfixes/$(LIBXFIXES_VERSION) +LIBXFIXES_PACKAGE := libXfixes-$(LIBXFIXES_VERSION).tar.bz2 +LIBXFIXES_BUILD_DIR := $(PACKAGES_BUILD)/libXfixes-$(LIBXFIXES_VERSION) + +LIBXFIXES_BINS = +LIBXFIXES_SBINS = +LIBXFIXES_INCLUDES = X11/extensions/Xfixes.h +LIBXFIXES_LIBS = libXfixes.* +LIBXFIXES_PKGCONFIGS =xfixes.pc + +LIBXFIXES_DEPS = xproto_install fixesproto_install + +libxfixes_install: $(LIBXFIXES_BUILD_DIR)/.installed + +$(LIBXFIXES_BUILD_DIR)/.installed: $(LIBXFIXES_DEPS) download_libxfixes \ + $(LIBXFIXES_BUILD_DIR)/.decompressed $(LIBXFIXES_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxfixes-$(LIBXFIXES_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXFIXES_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXFIXES_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXFIXES_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxfixes: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXFIXES_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXFIXES_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXFIXES_PACKAGE) \ + $(LIBXFIXES_SITE)/$(LIBXFIXES_PACKAGE) +ifeq ($(CONFIG_EMBTK_LIBXFIXES_NEED_PATCH),y) + @test -e $(DOWNLOAD_DIR)/libxfixes-$(LIBXFIXES_VERSION).patch || \ + wget -O $(DOWNLOAD_DIR)/libxfixes-$(LIBXFIXES_VERSION).patch \ + $(LIBXFIXES_PATCH_SITE)/libxfixes-$(LIBXFIXES_VERSION)-*.patch +endif + +$(LIBXFIXES_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXFIXES_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(LIBXFIXES_PACKAGE) +ifeq ($(CONFIG_EMBTK_LIBXFIXES_NEED_PATCH),y) + @cd $(PACKAGES_BUILD)/libxfixes-$(LIBXFIXES_VERSION); \ + patch -p1 < $(DOWNLOAD_DIR)/libxfixes-$(LIBXFIXES_VERSION).patch +endif + @touch $@ + +$(LIBXFIXES_BUILD_DIR)/.configured: + $(Q)cd $(LIBXFIXES_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 $@ + +libxfixes_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxfixes-$(LIBXFIXES_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXFIXES_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXFIXES_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXFIXES_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXFIXES_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXFIXES_PKGCONFIGS) + -- cgit v1.2.3