ntpclient: fix the script on avr32, remove useless loop
[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.1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=heyu-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://heyu.tanj.com/download/
17 PKG_MD5SUM:=d40f4ebf7d42fb896e7c6300227906eb
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/heyu
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=+setserial
27 TITLE:=X10 home automation control using a CM11A
28 URL:=http://heyu.tanj.com/heyu2/
29 endef
30
31 define Package/heyu/conffiles
32 /etc/heyu/x10.conf
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/Default, \
37 CFLAGS="$(TARGET_CFLAGS) \$$$$(DFLAGS)" \
38 )
39 endef
40
41 define Package/heyu/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/heyu $(1)/usr/bin/
44 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
45 $(INSTALL_DATA) ./files/x10.conf $(1)/etc/$(PKG_NAME)/x10.conf
46 endef
47
48 $(eval $(call BuildPackage,heyu))