Add input-utils (#4009)
[openwrt/svn-archive/archive.git] / utils / heyu / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=heyu
12 PKG_VERSION:=2.3.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://heyu.tanj.com/download/
17 PKG_MD5SUM:=af3eeeaa8c432e5b3510f4df6dd39f4f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/heyu
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+setserial
25 TITLE:=X10 home automation control using a CM11A
26 URL:=http://heyu.tanj.com/heyu2/
27 endef
28
29 define Package/heyu/description
30 HEYU is a text-based console program for remotely controlling lights
31 and appliances in the home or office. It is made available under a
32 free and open source license.
33
34 Heyu uses the CM11A computer interface to send and receive X10 control
35 signals over the AC power lines to modules which can turn On, Off, or
36 Dim attached lamps or appliances. It can store a schedule of timed
37 events in the CM11A memory for execution when the computer is turned
38 off or disconnected.
39 endef
40
41 define Package/heyu/conffiles
42 /etc/heyu/x10.conf
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/Default, \
47 CFLAGS="$(TARGET_CFLAGS) \$$$$(DFLAGS)" \
48 )
49 endef
50
51 define Package/heyu/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/heyu $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
55 $(INSTALL_DATA) ./files/x10.conf $(1)/etc/$(PKG_NAME)/x10.conf
56 endef
57
58 $(eval $(call BuildPackage,heyu))