8003d52392b525960873502ebc8741f4d65c3dc3
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=heyu
12 PKG_VERSION:=2.0beta.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=heyu-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://heyu.tanj.com/download/
17 PKG_MD5SUM:=8289d5ca5b972333a72bc0fc3e640c13
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/heyu
25   SECTION:=utils
26   CATEGORY:=Utilities
27   DEPENDS:=+setserial
28   TITLE:=X10 home automation control using a CM11A
29   URL:=http://heyu.tanj.com/heyu2/
30 endef
31
32 define Package/heyu/conffiles
33 /etc/heyu/x10.conf
34 endef
35
36 define Build/Compile
37         $(call Build/Compile/Default, \
38                 CFLAGS="$(TARGET_CFLAGS) \$$$$(DFLAGS)" \
39         )
40 endef
41
42 define Package/heyu/install     
43         install -d -m0755 $(1)/usr/bin
44         install -m0755 $(PKG_BUILD_DIR)/heyu $(1)/usr/bin/
45         install -d -m0755 $(1)/etc/$(PKG_NAME)
46         install -m0644 ./files/x10.conf $(1)/etc/$(PKG_NAME)/x10.conf
47 endef
48
49 $(eval $(call BuildPackage,heyu))