From: Grazvydas Ignotas Date: Wed, 9 Dec 2015 01:21:06 +0000 (+0200) Subject: input-utils: add X-Git-Tag: sz_173~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0a267387429b8d46a7ed8cfd0914aa9b07d85ad;p=openembedded.git input-utils: add --- diff --git a/recipes/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch b/recipes/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch new file mode 100644 index 0000000000..7230869052 --- /dev/null +++ b/recipes/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch @@ -0,0 +1,67 @@ +From fb1bbf8342c4a87380964465443bbb4b61dc0259 Mon Sep 17 00:00:00 2001 +From: Chase Maupin +Date: Tue, 5 Nov 2013 05:22:10 -0600 +Subject: [PATCH] autoconf: fix for cross compilation for ARM + +* Based on changes from Yebio Mesfin fixup the input-utils to + cross compile for ARM. + +Signed-off-by: Chase Maupin +--- + mk/Autoconf.mk | 8 ++++++-- + mk/Variables.mk | 4 ++-- + 2 files changed, 8 insertions(+), 4 deletions(-) + +diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk +index 7608ea5..95999cc 100644 +--- a/mk/Autoconf.mk ++++ b/mk/Autoconf.mk +@@ -47,11 +47,13 @@ ac_uname = $(shell \ + $(call ac_s_cmd,uname -s | tr 'A-Z' 'a-z');\ + $(call ac_fini)) + +-ac_uname_arch = $(shell \ ++#ac_uname_arch = $(shell \ + $(call ac_init,for arch);\ + $(call ac_s_cmd,uname -m | tr 'A-Z' 'a-z');\ + $(call ac_fini)) + ++ac_uname_arch = arm ++ + # check for some header file + # args: header file + ac_header = $(shell \ +@@ -108,12 +110,14 @@ ac_binary = $(shell \ + # $(call ac_s_cmd,$(CC) -print-search-dirs | grep -q lib64 &&\ + # echo "lib64" || echo "lib");\ + # $(call ac_fini)) +-ac_lib64 = $(shell \ ++#ac_lib64 = $(shell \ + $(call ac_init,for libdir name);\ + $(call ac_s_cmd,/sbin/ldconfig -p | grep -q lib64 &&\ + echo "lib64" || echo "lib");\ + $(call ac_fini)) + ++ac_lib64 = gcc ++ + # check for x11 ressource dir prefix + ac_resdir = $(shell \ + $(call ac_init,for X11 app-defaults prefix);\ +diff --git a/mk/Variables.mk b/mk/Variables.mk +index 99f787c..fd47f73 100644 +--- a/mk/Variables.mk ++++ b/mk/Variables.mk +@@ -24,8 +24,8 @@ endif + RELTAG := v$(subst .,_,$(VERSION)) + + # programs +-CC ?= gcc +-CXX ?= g++ ++CC ?= $(CROSS_COMPILE)gcc ++CXX ?= $(CROSS_COMPILE)g++ + MOC ?= $(if $(QTDIR),$(QTDIR)/bin/moc,moc) + + STRIP ?= -s +-- +1.7.0.4 + diff --git a/recipes/input-utils/input-utils/no-e.patch b/recipes/input-utils/input-utils/no-e.patch new file mode 100644 index 0000000000..7e18174d76 --- /dev/null +++ b/recipes/input-utils/input-utils/no-e.patch @@ -0,0 +1,12 @@ +diff -ur input-1.0_/mk/Autoconf.mk input-1.0/mk/Autoconf.mk +--- input-1.0_/mk/Autoconf.mk 2015-12-09 02:55:08.254791747 +0200 ++++ input-1.0/mk/Autoconf.mk 2015-12-09 03:04:30.456970768 +0200 +@@ -166,7 +166,7 @@ + @true + + Make.config: $(srcdir)/GNUmakefile +- @echo -e "$(make-config-q)" > $@ ++ @echo "$(make-config-q)" > $@ + @echo + @echo "Make.config written, edit if needed" + @echo diff --git a/recipes/input-utils/input-utils_1.0.bb b/recipes/input-utils/input-utils_1.0.bb new file mode 100644 index 0000000000..b0ee2bdfb3 --- /dev/null +++ b/recipes/input-utils/input-utils_1.0.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "Utilities for the Linux input drivers" +HOMEPAGE = "http://packages.tanglu.org/source/aequorea/input-utils" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" + +PV = "1.0" +PR = "r0" + +SRC_URI = "http://ftp.de.debian.org/debian/pool/main/i/input-utils/input-utils_1.0.orig.tar.gz \ + file://no-e.patch;patch=1" +SRC_URI_append_arm = " file://0001-autoconf-fix-for-cross-compilation-for-ARM.patch;patch=1" + +SRC_URI[md5sum] = "3e58772e8647093b1de2f2c90bfb9ee8" +SRC_URI[sha256sum] = "ab6f550f01bb5fcede492ab88711d82bacee4229cf2f5dc55a349b3bff4e3b13" + +S = "${WORKDIR}/input-1.0" + +do_compile () { + oe_runmake +} + +# set the DESTDIR and the STRIP variables used by the GNUmakefile. +# The STRIP variable is set to blank or else the variable setting from OE +# is picked up as -strip and the install step sees that as another +# file to install. +EXTRA_OEMAKE = "DESTDIR=${D} STRIP=''" + +do_install () { + oe_runmake install +}