Root/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-git
10PKG_RELEASE:=1
11PKG_REV:=c60552422fad13dc9c4064d8ea7e5e5ecc58be4a
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
14PKG_SOURCE_URL:=https://github.com/nopper/keymouse.git
15PKG_SOURCE_PROTO:=git
16PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17PKG_SOURCE_VERSION:=$(PKG_REV)
18
19PKG_BUILD_DEPENDS:=libX11
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/keymouse
24    TITLE:=Just a simple mouse emulator
25    SECTION:=utils
26    CATEGORY:=Utilities
27    URL:=http://keymouse.berlios.de
28    DEPENDS:=+libstdcpp
29endef
30PKG_BUILD_DIR:=$(BUILD_DIR)/keymouse-$(PKG_VERSION)
31
32define 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
34endef
35
36define Build/Configure
37    (cd "$(PKG_BUILD_DIR)"; ./autogen.sh );
38    $(call Build/Configure/Default)
39
40endef
41define 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
46endef
47
48$(eval $(call BuildPackage,keymouse))
49

Archive Download this file



interactive