OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # Copyright (C) 2010 tuxbrain.com |
2 | # |
3 | # This is free software, licensed under the GNU General Public License v2. |
4 | # |
5 | |
6 | include $(TOPDIR)/rules.mk |
7 | |
8 | PKG_NAME:=keymouse |
9 | PKG_VERSION:=1.0-git |
10 | PKG_RELEASE:=1 |
11 | PKG_REV:=c60552422fad13dc9c4064d8ea7e5e5ecc58be4a |
12 | |
13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
14 | PKG_SOURCE_URL:=https://github.com/nopper/keymouse.git |
15 | PKG_SOURCE_PROTO:=git |
16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
17 | PKG_SOURCE_VERSION:=$(PKG_REV) |
18 | |
19 | PKG_BUILD_DEPENDS:=libX11 |
20 | |
21 | include $(INCLUDE_DIR)/package.mk |
22 | |
23 | define Package/keymouse |
24 | TITLE:=Just a simple mouse emulator |
25 | SECTION:=utils |
26 | CATEGORY:=Utilities |
27 | URL:=http://keymouse.berlios.de |
28 | DEPENDS:=+libstdcpp |
29 | endef |
30 | PKG_BUILD_DIR:=$(BUILD_DIR)/keymouse-$(PKG_VERSION) |
31 | |
32 | define Package/keymouse/description |
33 | 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 |
34 | endef |
35 | |
36 | define Build/Configure |
37 | (cd "$(PKG_BUILD_DIR)"; ./autogen.sh ); |
38 | $(call Build/Configure/Default) |
39 | |
40 | endef |
41 | define Package/keymouse/install |
42 | $(INSTALL_DIR) $(1)/usr/bin $(1)/etc $(1)/etc/init.d |
43 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/keymouse $(1)/usr/bin/ |
44 | $(INSTALL_DATA) $(FILES_DIR)/keymouse.cfg $(1)/etc/ |
45 | $(INSTALL_BIN) $(FILES_DIR)/keymouse.init $(1)/etc/init.d/keymouse |
46 | endef |
47 | |
48 | $(eval $(call BuildPackage,keymouse)) |
49 |