Date:2010-10-31 15:59:13 (9 years 8 months ago)
Author:Xiangfu Liu
Commit:9f1726ee98f6e774aab5b17485edd28c96480363
Message:[keymouse] new package

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
Files: keymouse/Makefile (1 diff)
keymouse/patches/001_including_missing_headers.patch (1 diff)

Change Details

keymouse/Makefile
1# Copyright (C) 2010 tuxbrain.com
2#
3# This is free software, licensed under the GNU General Public License v2.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=keymouse
9PKG_VERSION:=1.0
10PKG_RELEASE:=2
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=http://download2.berlios.de/keymouse
14PKG_CAT:=bzcat
15PKG_BUILD_DEPENDS:=libX11
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/keymouse
20    TITLE:=Just a simple mouse emulator
21    SECTION:=utils
22    CATEGORY:=Utilities
23    URL:=http://keymouse.berlios.de
24    DEPENDS:=@BROKEN
25endef
26PKG_BUILD_DIR:=$(BUILD_DIR)/keymouse-$(PKG_VERSION)
27
28define Package/keymouse/description
29    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
30endef
31
32define Build/Configure
33    (cd "$(PKG_BUILD_DIR)"; ./autogen.sh );
34    $(call Build/Configure/Default)
35
36endef
37define Package/keymouse/install
38    $(INSTALL_DIR) $(1)/usr/bin
39    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/keymouse $(1)/usr/bin/
40endef
41
42$(eval $(call BuildPackage,keymouse))
keymouse/patches/001_including_missing_headers.patch
1diff -crB keymouse-1.0/src/app.cpp keymouse-1.0.mod/src/app.cpp
2*** keymouse-1.0/src/app.cpp 2008-03-30 15:41:44.000000000 +0200
3--- keymouse-1.0.mod/src/app.cpp 2010-06-14 13:34:31.565636052 +0200
4***************
5*** 8,14 ****
6  #include <sys/stat.h>
7  #include <fcntl.h>
8  #include "app.h"
9!
10  using namespace std;
11
12  App::App(const char *file) : m_config(file), m_dev(NULL), m_ordModes(), m_exiting(false)
13--- 8,15 ----
14  #include <sys/stat.h>
15  #include <fcntl.h>
16  #include "app.h"
17! #include <cstdlib>
18! #include <cstring>
19  using namespace std;
20
21  App::App(const char *file) : m_config(file), m_dev(NULL), m_ordModes(), m_exiting(false)
22diff -crB keymouse-1.0/src/configfile.cpp keymouse-1.0.mod/src/configfile.cpp
23*** keymouse-1.0/src/configfile.cpp 2008-03-08 21:09:36.000000000 +0100
24--- keymouse-1.0.mod/src/configfile.cpp 2010-06-14 13:36:22.096885603 +0200
25***************
26*** 7,12 ****
27--- 7,14 ----
28  #include <fstream>
29  #include <iostream>
30  #include "configfile.h"
31+ #include <cstdlib>
32+ #include <cstring>
33
34  ConfigFile::ConfigFile(const char *file) : m_values(), m_file(file)
35  {
36Sólo en keymouse-1.0.mod/src: .deps
37diff -crB keymouse-1.0/src/keymouse.cpp keymouse-1.0.mod/src/keymouse.cpp
38*** keymouse-1.0/src/keymouse.cpp 2008-03-10 20:18:37.000000000 +0100
39--- keymouse-1.0.mod/src/keymouse.cpp 2010-06-14 13:36:55.096884176 +0200
40***************
41*** 10,15 ****
42--- 10,17 ----
43
44  #include <signal.h>
45  #include "app.h"
46+ #include <cstdlib>
47+ #include <cstring>
48
49  using namespace std;
50
51diff -crB keymouse-1.0/src/logger.cpp keymouse-1.0.mod/src/logger.cpp
52*** keymouse-1.0/src/logger.cpp 2008-03-08 21:09:36.000000000 +0100
53--- keymouse-1.0.mod/src/logger.cpp 2010-06-14 13:52:26.245635574 +0200
54***************
55*** 6,11 ****
56--- 6,15 ----
57
58  #include "logger.h"
59  #include <iostream>
60+ #include <cstdlib>
61+ #include <cstring>
62+ #include <cstdarg>
63+ #include <cstdio>
64
65  using namespace std;
66
67diff -crB keymouse-1.0/src/shortcut.cpp keymouse-1.0.mod/src/shortcut.cpp
68*** keymouse-1.0/src/shortcut.cpp 2008-03-08 21:09:36.000000000 +0100
69--- keymouse-1.0.mod/src/shortcut.cpp 2010-06-14 13:53:28.896884710 +0200
70***************
71*** 6,11 ****
72--- 6,13 ----
73
74  #include "shortcut.h"
75  #include <linux/input.h>
76+ #include <cstdlib>
77+ #include <cstring>
78
79  bool Shortcut::locked = false;
80

Archive Download the corresponding diff file



interactive