From 9f1726ee98f6e774aab5b17485edd28c96480363 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Sun, 31 Oct 2010 22:59:13 +0800 Subject: [PATCH] [keymouse] new package Signed-off-by: Xiangfu Liu --- keymouse/Makefile | 42 ++++++++++ .../001_including_missing_headers.patch | 80 +++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 keymouse/Makefile create mode 100644 keymouse/patches/001_including_missing_headers.patch diff --git a/keymouse/Makefile b/keymouse/Makefile new file mode 100644 index 0000000..d127640 --- /dev/null +++ b/keymouse/Makefile @@ -0,0 +1,42 @@ +# Copyright (C) 2010 tuxbrain.com +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=keymouse +PKG_VERSION:=1.0 +PKG_RELEASE:=2 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://download2.berlios.de/keymouse +PKG_CAT:=bzcat +PKG_BUILD_DEPENDS:=libX11 + +include $(INCLUDE_DIR)/package.mk + +define Package/keymouse + TITLE:=Just a simple mouse emulator + SECTION:=utils + CATEGORY:=Utilities + URL:=http://keymouse.berlios.de + DEPENDS:=@BROKEN +endef +PKG_BUILD_DIR:=$(BUILD_DIR)/keymouse-$(PKG_VERSION) + +define Package/keymouse/description + Just a simple mouse emulator (for Linux) that can be controlled with keyboard. Useful on laptop with broken touch pad or in absence of external mouse device.Requires uinput kernel module +endef + +define Build/Configure + (cd "$(PKG_BUILD_DIR)"; ./autogen.sh ); + $(call Build/Configure/Default) + +endef +define Package/keymouse/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/keymouse $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,keymouse)) diff --git a/keymouse/patches/001_including_missing_headers.patch b/keymouse/patches/001_including_missing_headers.patch new file mode 100644 index 0000000..bcc6a1f --- /dev/null +++ b/keymouse/patches/001_including_missing_headers.patch @@ -0,0 +1,80 @@ +diff -crB keymouse-1.0/src/app.cpp keymouse-1.0.mod/src/app.cpp +*** keymouse-1.0/src/app.cpp 2008-03-30 15:41:44.000000000 +0200 +--- keymouse-1.0.mod/src/app.cpp 2010-06-14 13:34:31.565636052 +0200 +*************** +*** 8,14 **** + #include + #include + #include "app.h" +! + using namespace std; + + App::App(const char *file) : m_config(file), m_dev(NULL), m_ordModes(), m_exiting(false) +--- 8,15 ---- + #include + #include + #include "app.h" +! #include +! #include + using namespace std; + + App::App(const char *file) : m_config(file), m_dev(NULL), m_ordModes(), m_exiting(false) +diff -crB keymouse-1.0/src/configfile.cpp keymouse-1.0.mod/src/configfile.cpp +*** keymouse-1.0/src/configfile.cpp 2008-03-08 21:09:36.000000000 +0100 +--- keymouse-1.0.mod/src/configfile.cpp 2010-06-14 13:36:22.096885603 +0200 +*************** +*** 7,12 **** +--- 7,14 ---- + #include + #include + #include "configfile.h" ++ #include ++ #include + + ConfigFile::ConfigFile(const char *file) : m_values(), m_file(file) + { +Sólo en keymouse-1.0.mod/src: .deps +diff -crB keymouse-1.0/src/keymouse.cpp keymouse-1.0.mod/src/keymouse.cpp +*** keymouse-1.0/src/keymouse.cpp 2008-03-10 20:18:37.000000000 +0100 +--- keymouse-1.0.mod/src/keymouse.cpp 2010-06-14 13:36:55.096884176 +0200 +*************** +*** 10,15 **** +--- 10,17 ---- + + #include + #include "app.h" ++ #include ++ #include + + using namespace std; + +diff -crB keymouse-1.0/src/logger.cpp keymouse-1.0.mod/src/logger.cpp +*** keymouse-1.0/src/logger.cpp 2008-03-08 21:09:36.000000000 +0100 +--- keymouse-1.0.mod/src/logger.cpp 2010-06-14 13:52:26.245635574 +0200 +*************** +*** 6,11 **** +--- 6,15 ---- + + #include "logger.h" + #include ++ #include ++ #include ++ #include ++ #include + + using namespace std; + +diff -crB keymouse-1.0/src/shortcut.cpp keymouse-1.0.mod/src/shortcut.cpp +*** keymouse-1.0/src/shortcut.cpp 2008-03-08 21:09:36.000000000 +0100 +--- keymouse-1.0.mod/src/shortcut.cpp 2010-06-14 13:53:28.896884710 +0200 +*************** +*** 6,11 **** +--- 6,13 ---- + + #include "shortcut.h" + #include ++ #include ++ #include + + bool Shortcut::locked = false; +