input-utils: add
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 9 Dec 2015 01:21:06 +0000 (03:21 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 9 Dec 2015 01:21:06 +0000 (03:21 +0200)
recipes/input-utils/input-utils/0001-autoconf-fix-for-cross-compilation-for-ARM.patch [new file with mode: 0644]
recipes/input-utils/input-utils/no-e.patch [new file with mode: 0644]
recipes/input-utils/input-utils_1.0.bb [new file with mode: 0644]

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 (file)
index 0000000..7230869
--- /dev/null
@@ -0,0 +1,67 @@
+From fb1bbf8342c4a87380964465443bbb4b61dc0259 Mon Sep 17 00:00:00 2001
+From: Chase Maupin <Chase.Maupin@ti.com>
+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 <Chase.Maupin@ti.com>
+---
+ 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 (file)
index 0000000..7e18174
--- /dev/null
@@ -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 (file)
index 0000000..b0ee2bd
--- /dev/null
@@ -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 <TC>-strip and the install step sees that as another
+# file to install.
+EXTRA_OEMAKE = "DESTDIR=${D} STRIP=''"
+
+do_install () {
+    oe_runmake install
+}