mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 07:08:05 +02:00
[keymouse] new package
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
44b60e7b71
commit
9f1726ee98
42
keymouse/Makefile
Normal file
42
keymouse/Makefile
Normal file
@ -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))
|
80
keymouse/patches/001_including_missing_headers.patch
Normal file
80
keymouse/patches/001_including_missing_headers.patch
Normal file
@ -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 <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#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 <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include "app.h"
|
||||||
|
! #include <cstdlib>
|
||||||
|
! #include <cstring>
|
||||||
|
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 <fstream>
|
||||||
|
#include <iostream>
|
||||||
|
#include "configfile.h"
|
||||||
|
+ #include <cstdlib>
|
||||||
|
+ #include <cstring>
|
||||||
|
|
||||||
|
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 <signal.h>
|
||||||
|
#include "app.h"
|
||||||
|
+ #include <cstdlib>
|
||||||
|
+ #include <cstring>
|
||||||
|
|
||||||
|
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 <iostream>
|
||||||
|
+ #include <cstdlib>
|
||||||
|
+ #include <cstring>
|
||||||
|
+ #include <cstdarg>
|
||||||
|
+ #include <cstdio>
|
||||||
|
|
||||||
|
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 <linux/input.h>
|
||||||
|
+ #include <cstdlib>
|
||||||
|
+ #include <cstring>
|
||||||
|
|
||||||
|
bool Shortcut::locked = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user