[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[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:=20081014-101501
11 PKG_RELEASE:=2
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:=a6854dc5218301b67324b483d26f1bee
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 $(MAKE) -C "$(PKG_BUILD_DIR)" \
31 $(TARGET_CONFIGURE_OPTS) \
32 CFLAGS="$(TARGET_CFLAGS)" \
33 STRIP="true" \
34 build
35 endef
36
37 define Package/input-utils/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/input-events $(1)/usr/bin/
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/input-kbd $(1)/usr/bin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsinput $(1)/usr/bin/
42
43 endef
44
45 $(eval $(call BuildPackage,input-utils))