diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2010-07-19 19:30:15 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2010-07-19 19:30:15 +0200 |
commit | 7ad96bc7af63176e2e890a5f44fb9223ba4aad0e (patch) | |
tree | b976ac4fb9802a1ea2f836f0ded62b6e79d1c7d3 /packages/x11/xf86inputevdev | |
parent | fa81afe43bee0960d2629d02e3bfb7209a0fcb37 (diff) | |
download | embtoolkit-7ad96bc7af63176e2e890a5f44fb9223ba4aad0e.tar.gz embtoolkit-7ad96bc7af63176e2e890a5f44fb9223ba4aad0e.tar.bz2 embtoolkit-7ad96bc7af63176e2e890a5f44fb9223ba4aad0e.tar.xz |
Packages: X11: give ability to build Xorg X server instead of kdrive X server
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages/x11/xf86inputevdev')
-rw-r--r-- | packages/x11/xf86inputevdev/xf86inputevdev.kconfig | 48 | ||||
-rw-r--r-- | packages/x11/xf86inputevdev/xf86inputevdev.mk | 106 |
2 files changed, 154 insertions, 0 deletions
diff --git a/packages/x11/xf86inputevdev/xf86inputevdev.kconfig b/packages/x11/xf86inputevdev/xf86inputevdev.kconfig new file mode 100644 index 0000000..7701a44 --- /dev/null +++ b/packages/x11/xf86inputevdev/xf86inputevdev.kconfig @@ -0,0 +1,48 @@ +################################################################################ +# 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 xf86inputevdev.kconfig +# \brief xf86inputevdev.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date December 2009 +################################################################################ + +config EMBTK_HAVE_XF86INPUTEVDEV + bool "Have xf86-input-evdev" + depends on EMBTK_HAVE_XSERVER_XORG + help + X.Org evdev input driver. +choice + prompt "xf86inputevdev version you wish" + depends on EMBTK_HAVE_XF86INPUTEVDEV + help + Here you can choose which version of xf86inputevdev you want to use. + + config EMBTK_XF86INPUTEVDEV_VERSION_2_4_0 + bool "xf86-input-evdev-2.4.0" +endchoice + +config EMBTK_XF86INPUTEVDEV_VERSION_STRING + string + default "2.4.0" if EMBTK_XF86INPUTEVDEV_VERSION_2_4_0 + +config EMBTK_XF86INPUTEVDEV_NEED_PATCH + bool + + diff --git a/packages/x11/xf86inputevdev/xf86inputevdev.mk b/packages/x11/xf86inputevdev/xf86inputevdev.mk new file mode 100644 index 0000000..494daec --- /dev/null +++ b/packages/x11/xf86inputevdev/xf86inputevdev.mk @@ -0,0 +1,106 @@ +################################################################################ +# 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 xf86inputevdev.mk +# \brief xf86inputevdev.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date December 2009 +################################################################################ + +XF86INPUTEVDEV_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_XF86INPUTEVDEV_VERSION_STRING))) +XF86INPUTEVDEV_SITE := http://xorg.freedesktop.org/archive/individual/driver +XF86INPUTEVDEV_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/xf86-input-evdev/$(XF86INPUTEVDEV_VERSION) +XF86INPUTEVDEV_PACKAGE := xf86-input-evdev-$(XF86INPUTEVDEV_VERSION).tar.bz2 +XF86INPUTEVDEV_BUILD_DIR := $(PACKAGES_BUILD)/xf86-input-evdev-$(XF86INPUTEVDEV_VERSION) + +XF86INPUTEVDEV_BINS = +XF86INPUTEVDEV_SBINS = +XF86INPUTEVDEV_INCLUDES = xorg +XF86INPUTEVDEV_LIBS = xorg +XF86INPUTEVDEV_PKGCONFIGS = xorg-evdev.pc + +XF86INPUTEVDEV_DEPS = xserver_install + +xf86inputevdev_install: $(XF86INPUTEVDEV_BUILD_DIR)/.installed + +$(XF86INPUTEVDEV_BUILD_DIR)/.installed: $(XF86INPUTEVDEV_DEPS) \ + download_xf86inputevdev $(XF86INPUTEVDEV_BUILD_DIR)/.decompressed \ + $(XF86INPUTEVDEV_BUILD_DIR)/.configured + $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ + xf86inputevdev-$(XF86INPUTEVDEV_VERSION) in your root filesystem...") + $(call EMBTK_KILL_LT_RPATH,$(XF86INPUTEVDEV_BUILD_DIR)) + $(Q)$(MAKE) -C $(XF86INPUTEVDEV_BUILD_DIR) $(J) + $(Q)$(MAKE) -C $(XF86INPUTEVDEV_BUILD_DIR) DESTDIR=$(SYSROOT) install + $(Q)$(MAKE) libtool_files_adapt + $(Q)$(MAKE) pkgconfig_files_adapt + $(Q)-cp -R $(SYSROOT)/usr/$(LIBDIR)/xorg $(ROOTFS)/usr/$(LIBDIR)/ + @touch $@ + +download_xf86inputevdev: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(XF86INPUTEVDEV_PACKAGE) \ + if necessary...") + @test -e $(DOWNLOAD_DIR)/$(XF86INPUTEVDEV_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(XF86INPUTEVDEV_PACKAGE) \ + $(XF86INPUTEVDEV_SITE)/$(XF86INPUTEVDEV_PACKAGE) +ifeq ($(CONFIG_EMBTK_XF86INPUTEVDEV_NEED_PATCH),y) + @test -e $(DOWNLOAD_DIR)/xf86-input-evdev-$(XF86INPUTEVDEV_VERSION).patch || \ + wget -O $(DOWNLOAD_DIR)/xf86-input-evdev-$(XF86INPUTEVDEV_VERSION).patch \ + $(XF86INPUTEVDEV_PATCH_SITE)/xf86-input-evdev-$(XF86INPUTEVDEV_VERSION)-*.patch +endif + +$(XF86INPUTEVDEV_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(XF86INPUTEVDEV_PACKAGE) ...") + @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(XF86INPUTEVDEV_PACKAGE) +ifeq ($(CONFIG_EMBTK_XF86INPUTEVDEV_NEED_PATCH),y) + @cd $(PACKAGES_BUILD)/xf86-input-evdev-$(XF86INPUTEVDEV_VERSION); \ + patch -p1 < $(DOWNLOAD_DIR)/xf86-input-evdev-$(XF86INPUTEVDEV_VERSION).patch +endif + @touch $@ + +$(XF86INPUTEVDEV_BUILD_DIR)/.configured: + $(Q)cd $(XF86INPUTEVDEV_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 $@ + +xf86inputevdev_clean: + $(call EMBTK_GENERIC_MESSAGE,"cleanup xf86inputevdev-$(XF86INPUTEVDEV_VERSION)...") + $(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(XF86INPUTEVDEV_BINS) + $(Q)-cd $(SYSROOT)/usr/sbin; rm -rf $(XF86INPUTEVDEV_SBINS) + $(Q)-cd $(SYSROOT)/usr/include; rm -rf $(XF86INPUTEVDEV_INCLUDES) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR); rm -rf $(XF86INPUTEVDEV_LIBS) + $(Q)-cd $(SYSROOT)/usr/$(LIBDIR)/pkgconfig; rm -rf $(XF86INPUTEVDEV_PKGCONFIGS) + |