[PATCH] [usb-modeswitch-data] Update to latest available debian source.
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=heyu
11 PKG_VERSION:=2.3.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://heyu.tanj.com/download/
16 PKG_MD5SUM:=af3eeeaa8c432e5b3510f4df6dd39f4f
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/heyu
21   SECTION:=utils
22   CATEGORY:=Utilities
23   DEPENDS:=+setserial
24   TITLE:=X10 home automation control using a CM11A
25   URL:=http://heyu.tanj.com/heyu2/
26 endef
27
28 define Package/heyu/description
29         HEYU is a text-based console program for remotely controlling lights
30         and appliances in the home or office.   It is made available under a
31         free and open source license.
32
33         Heyu uses the CM11A computer interface to send and receive X10 control
34         signals over the AC power lines to modules which can turn On, Off, or
35         Dim attached lamps or appliances.   It can store a schedule of timed
36         events in the CM11A memory for execution when the computer is turned
37         off or disconnected.
38 endef
39
40 define Package/heyu/conffiles
41 /etc/heyu/x10.conf
42 endef
43
44 define Build/Compile
45         $(call Build/Compile/Default, \
46                 CFLAGS="$(TARGET_CFLAGS) \$$$$(DFLAGS)" \
47         )
48 endef
49
50 define Package/heyu/install     
51         $(INSTALL_DIR) $(1)/usr/bin
52         $(INSTALL_BIN) $(PKG_BUILD_DIR)/heyu $(1)/usr/bin/
53         $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
54         $(INSTALL_DATA) ./files/x10.conf $(1)/etc/$(PKG_NAME)/x10.conf
55 endef
56
57 $(eval $(call BuildPackage,heyu))