c7b20bfe7f047ac805db5f6b73e3f3947f26c7e4
[openwrt/svn-archive/archive.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
9 PKG_NAME:=input-utils
10 PKG_VERSION:=20051128-143821
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR:=$(BUILD_DIR)/input/
14 PKG_SOURCE:=input-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://dl.bytesex.org/cvs-snapshots/
16 PKG_MD5SUM:=3f8504c769c41de0456baaaca1484fa6
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/input-utils
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Utilities for the input layer of the Linux kernel
24 endef
25
26 define Build/Configure
27 endef
28
29 define Build/Compile
30 rm -rf $(PKG_INSTALL_DIR)
31 mkdir -p $(PKG_INSTALL_DIR)
32 $(MAKE) -C "$(PKG_BUILD_DIR)" \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS)" \
35 STRIP="true" \
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))