From d3a29deeaaa2087661e5acdd5564a0c6c931a5ec Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 20 Jun 2010 23:19:07 +0200 Subject: Packages: X11: New libXinerama Signed-off-by: Abdoulaye Walsimou Gaye --- packages/x11/libxinerama/libxinerama.kconfig | 44 +++++++++++++ packages/x11/libxinerama/libxinerama.mk | 94 ++++++++++++++++++++++++++++ packages/x11/x11.kconfig | 1 + packages/x11/x11.mk | 5 ++ 4 files changed, 144 insertions(+) create mode 100644 packages/x11/libxinerama/libxinerama.kconfig create mode 100644 packages/x11/libxinerama/libxinerama.mk (limited to 'packages') diff --git a/packages/x11/libxinerama/libxinerama.kconfig b/packages/x11/libxinerama/libxinerama.kconfig new file mode 100644 index 0000000..4da2aa9 --- /dev/null +++ b/packages/x11/libxinerama/libxinerama.kconfig @@ -0,0 +1,44 @@ +################################################################################ +# 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 libxinerama.kconfig +# \brief libxinerama.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2010 +################################################################################ + +config EMBTK_HAVE_LIBXINERAMA + bool "Have libXinerama" + select EMBTK_HAVE_XINERAMAPROTO + help + libXinerama for X windowing system +choice + prompt "libxinerama version you wish" + depends on EMBTK_HAVE_LIBXINERAMA + help + Here you can choose which version of libxinerama you want to use. + + config EMBTK_LIBXINERAMA_VERSION_1_1 + bool "libXinerama-1.1"" +endchoice + +config EMBTK_LIBXINERAMA_VERSION_STRING + string + default "1.1" if EMBTK_LIBXINERAMA_VERSION_1_1 + diff --git a/packages/x11/libxinerama/libxinerama.mk b/packages/x11/libxinerama/libxinerama.mk new file mode 100644 index 0000000..3b87872 --- /dev/null +++ b/packages/x11/libxinerama/libxinerama.mk @@ -0,0 +1,94 @@ +################################################################################ +# 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 libxinerama.mk +# \brief libxinerama.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2010 +################################################################################ + +LIBXINERAMA_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBXINERAMA_VERSION_STRING))) +LIBXINERAMA_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBXINERAMA_PACKAGE := libXinerama-$(LIBXINERAMA_VERSION).tar.bz2 +LIBXINERAMA_BUILD_DIR := $(PACKAGES_BUILD)/libXinerama-$(LIBXINERAMA_VERSION) + +LIBXINERAMA_BINS = +LIBXINERAMA_SBINS = +LIBXINERAMA_INCLUDES = X11/extensions/Xinerama.h X11/extensions/panoramiXext.h +LIBXINERAMA_LIBS = libXinerama.* +LIBXINERAMA_PKGCONFIGS = xinerama.pc + +LIBXINERAMA_DEPS = xineramaproto_install + +libxinerama_install: $(LIBXINERAMA_BUILD_DIR)/.installed + +$(LIBXINERAMA_BUILD_DIR)/.installed: $(LIBXINERAMA_DEPS) download_libxinerama \ + $(LIBXINERAMA_BUILD_DIR)/.decompressed $(LIBXINERAMA_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libxinerama-$(LIBXINERAMA_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBXINERAMA_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBXINERAMA_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBXINERAMA_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libxinerama: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBXINERAMA_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBXINERAMA_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBXINERAMA_PACKAGE) \ + $(LIBXINERAMA_SITE)/$(LIBXINERAMA_PACKAGE) + +$(LIBXINERAMA_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBXINERAMA_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(LIBXINERAMA_PACKAGE) + @touch $@ + +$(LIBXINERAMA_BUILD_DIR)/.configured: + $(Q)cd $(LIBXINERAMA_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 \ + --disable-malloc0returnsnull + @touch $@ + +libxinerama_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libxinerama-$(LIBXINERAMA_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBXINERAMA_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBXINERAMA_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBXINERAMA_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBXINERAMA_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBXINERAMA_PKGCONFIGS) + diff --git a/packages/x11/x11.kconfig b/packages/x11/x11.kconfig index 30b9cc6..3d9933d 100644 --- a/packages/x11/x11.kconfig +++ b/packages/x11/x11.kconfig @@ -56,6 +56,7 @@ source packages/x11/libx11/libx11.kconfig source packages/x11/libxau/libxau.kconfig source packages/x11/libxcb/libxcb.kconfig source packages/x11/libxext/libxext.kconfig +source packages/x11/libxinerama/libxinerama.kconfig source packages/x11/libxfont/libxfont.kconfig source packages/x11/libxft/libxft.kconfig source packages/x11/libxkbfile/libxkbfile.kconfig diff --git a/packages/x11/x11.mk b/packages/x11/x11.mk index 03e2d10..9e25b07 100644 --- a/packages/x11/x11.mk +++ b/packages/x11/x11.mk @@ -146,6 +146,11 @@ include $(EMBTK_ROOT)/packages/x11/libxau/libxau.mk ROOTFS_COMPONENTS_CLEAN += libxau_clean ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXAU) += libxau_install +#libxinerama +include $(EMBTK_ROOT)/packages/x11/libxinerama/libxinerama.mk +ROOTFS_COMPONENTS_CLEAN += libxinerama_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBXINERAMA) += libxinerama_install + #libxcb include $(EMBTK_ROOT)/packages/x11/libxcb/libxcb.mk ROOTFS_COMPONENTS_CLEAN += libxcb_clean -- cgit v1.2.3