hd-idle: moved to github
[packages.git] / utils / input-utils / Makefile
1 #
2 # Copyright (C) 2007,2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/kernel.mk
9
10 PKG_NAME:=input-utils
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/input-$(PKG_VERSION)/
15 PKG_SOURCE:=input-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://www.kraxel.org/cgit/input/snapshot
17 PKG_MD5SUM:=592b1b45d9d891725f7793999aa52f31
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/input-utils
22   SECTION:=utils
23   CATEGORY:=Utilities
24   TITLE:=Utilities for the input layer of the Linux kernel
25 endef
26
27 define Build/Configure
28 endef
29
30 define Build/Compile
31         $(MAKE) -C "$(PKG_BUILD_DIR)" \
32                 $(TARGET_CONFIGURE_OPTS) \
33                 CFLAGS="$(TARGET_CFLAGS)" \
34                 STRIP="true" \
35                 INPUT="$(LINUX_DIR)/include/uapi/linux/input.h" \
36                 build
37 endef
38
39 define Package/input-utils/install
40         $(INSTALL_DIR) $(1)/usr/bin
41         $(INSTALL_BIN) $(PKG_BUILD_DIR)/input-events $(1)/usr/bin/
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/input-kbd $(1)/usr/bin/
43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsinput $(1)/usr/bin/
44
45 endef
46
47 $(eval $(call BuildPackage,input-utils))