diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2010-07-17 12:48:46 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2010-07-17 12:48:46 +0200 |
commit | 4c20dee2654c0b093fc7557a4c9c69f72560d723 (patch) | |
tree | 10cf3a50fe6b70743894464105628606adf14fe2 | |
parent | f2ece85fd60b84366a12dc862c68522bf6a91882 (diff) | |
download | embtoolkit-4c20dee2654c0b093fc7557a4c9c69f72560d723.tar.gz embtoolkit-4c20dee2654c0b093fc7557a4c9c69f72560d723.tar.bz2 embtoolkit-4c20dee2654c0b093fc7557a4c9c69f72560d723.tar.xz |
Packages: X11: New add libpciaccess-0.11.0
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | packages/x11/libpciaccess/libpciaccess.kconfig | 47 | ||||
-rw-r--r-- | packages/x11/libpciaccess/libpciaccess.mk | 105 | ||||
-rw-r--r-- | packages/x11/x11.kconfig | 1 | ||||
-rw-r--r-- | packages/x11/x11.mk | 15 |
4 files changed, 163 insertions, 5 deletions
diff --git a/packages/x11/libpciaccess/libpciaccess.kconfig b/packages/x11/libpciaccess/libpciaccess.kconfig new file mode 100644 index 0000000..f44add2 --- /dev/null +++ b/packages/x11/libpciaccess/libpciaccess.kconfig @@ -0,0 +1,47 @@ +################################################################################ +# 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 libpciaccess.kconfig +# \brief libpciaccess.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date July 2010 +################################################################################ + +config EMBTK_HAVE_LIBPCIACCESS + bool "Have libpciaccess" + help + Library providing generic access to the PCI bus and devices. +choice + prompt "libpciaccess version you wish" + depends on EMBTK_HAVE_LIBPCIACCESS + help + Here you can choose which version of libpciaccess you want to use. + + config EMBTK_LIBPCIACCESS_VERSION_0_11_0 + bool "libpciaccess-0.11.0" +endchoice + +config EMBTK_LIBPCIACCESS_VERSION_STRING + string + default "0.11.0" if EMBTK_LIBPCIACCESS_VERSION_0_11_0 + +config EMBTK_LIBPCIACCESS_NEED_PATCH + bool + + diff --git a/packages/x11/libpciaccess/libpciaccess.mk b/packages/x11/libpciaccess/libpciaccess.mk new file mode 100644 index 0000000..3d8bef1 --- /dev/null +++ b/packages/x11/libpciaccess/libpciaccess.mk @@ -0,0 +1,105 @@ +################################################################################ +# Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# Copyright(C) 2009-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 libpciaccess.mk +# \brief libpciaccess.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date December 2009 +################################################################################ + +LIBPCIACCESS_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LIBPCIACCESS_VERSION_STRING))) +LIBPCIACCESS_SITE := http://xorg.freedesktop.org/archive/individual/lib +LIBPCIACCESS_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/libpciaccess/$(LIBPCIACCESS_VERSION) +LIBPCIACCESS_PACKAGE := libpciaccess-$(LIBPCIACCESS_VERSION).tar.gz +LIBPCIACCESS_BUILD_DIR := $(PACKAGES_BUILD)/libpciaccess-$(LIBPCIACCESS_VERSION) + +LIBPCIACCESS_BINS = +LIBPCIACCESS_SBINS = +LIBPCIACCESS_INCLUDES = pciaccess.h +LIBPCIACCESS_LIBS = libpciaccess.* +LIBPCIACCESS_PKGCONFIGS = pciaccess.pc + +LIBPCIACCESS_DEPS = + +libpciaccess_install: $(LIBPCIACCESS_BUILD_DIR)/.installed + +$(LIBPCIACCESS_BUILD_DIR)/.installed: $(LIBPCIACCESS_DEPS) \ + download_libpciaccess $(LIBPCIACCESS_BUILD_DIR)/.decompressed \ + $(LIBPCIACCESS_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + libpciaccess-$(LIBPCIACCESS_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(LIBPCIACCESS_BUILD_DIR)) + $(Q)$(MAKE) -C $(LIBPCIACCESS_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(LIBPCIACCESS_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + @touch $@ + +download_libpciaccess: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBPCIACCESS_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LIBPCIACCESS_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LIBPCIACCESS_PACKAGE) \ + $(LIBPCIACCESS_SITE)/$(LIBPCIACCESS_PACKAGE) +ifeq ($(CONFIG_EMBTK_LIBPCIACCESS_NEED_PATCH),y) + @test -e $(DOWNLOAD_DIR)/libpciaccess-$(LIBPCIACCESS_VERSION).patch || \ + wget -O $(DOWNLOAD_DIR)/libpciaccess-$(LIBPCIACCESS_VERSION).patch \ + $(LIBPCIACCESS_PATCH_SITE)/libpciaccess-$(LIBPCIACCESS_VERSION)-*.patch +endif + +$(LIBPCIACCESS_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBPCIACCESS_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xzf $(DOWNLOAD_DIR)/$(LIBPCIACCESS_PACKAGE) +ifeq ($(CONFIG_EMBTK_LIBPCIACCESS_NEED_PATCH),y) + @cd $(PACKAGES_BUILD)/libpciaccess-$(LIBPCIACCESS_VERSION); \ + patch -p1 < $(DOWNLOAD_DIR)/libpciaccess-$(LIBPCIACCESS_VERSION).patch +endif + @touch $@ + +$(LIBPCIACCESS_BUILD_DIR)/.configured: + $(Q)cd $(LIBPCIACCESS_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 $@ + +libpciaccess_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup libpciaccess-$(LIBPCIACCESS_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(LIBPCIACCESS_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(LIBPCIACCESS_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(LIBPCIACCESS_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(LIBPCIACCESS_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(LIBPCIACCESS_PKGCONFIGS) + diff --git a/packages/x11/x11.kconfig b/packages/x11/x11.kconfig index 91c287d..4c19b91 100644 --- a/packages/x11/x11.kconfig +++ b/packages/x11/x11.kconfig @@ -50,6 +50,7 @@ endmenu menu "X windowing system library packages" source packages/x11/libfontenc/libfontenc.kconfig +source packages/x11/libpciaccess/libpciaccess.kconfig source packages/x11/libpthreadstubs/libpthreadstubs.kconfig source packages/x11/libx11/libx11.kconfig source packages/x11/libxau/libxau.kconfig diff --git a/packages/x11/x11.mk b/packages/x11/x11.mk index e2e207b..8eb41b3 100644 --- a/packages/x11/x11.mk +++ b/packages/x11/x11.mk @@ -126,16 +126,21 @@ include $(EMBTK_ROOT)/packages/x11/libfontenc/libfontenc.mk ROOTFS_COMPONENTS_CLEAN += libfontenc_clean ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBFONTENC) += libfontenc_install -#libx11 -include $(EMBTK_ROOT)/packages/x11/libx11/libx11.mk -ROOTFS_COMPONENTS_CLEAN += libx11_clean -ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBX11) += libx11_install - #libpthreadstubs include $(EMBTK_ROOT)/packages/x11/libpthreadstubs/libpthreadstubs.mk ROOTFS_COMPONENTS_CLEAN += libpthreadstubs_clean ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBPTHREADSTUBS) += libpthreadstubs_install +#libpciaccess +include $(EMBTK_ROOT)/packages/x11/libpciaccess/libpciaccess.mk +ROOTFS_COMPONENTS_CLEAN += libpciaccess_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBPCIACCESS) += libpciaccess_install + +#libx11 +include $(EMBTK_ROOT)/packages/x11/libx11/libx11.mk +ROOTFS_COMPONENTS_CLEAN += libx11_clean +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBX11) += libx11_install + #libxau include $(EMBTK_ROOT)/packages/x11/libxau/libxau.mk ROOTFS_COMPONENTS_CLEAN += libxau_clean |