summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/rhctl/Makefile')
-rw-r--r--openwrt/rhctl/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/openwrt/rhctl/Makefile b/openwrt/rhctl/Makefile
index 82fb58e..22bbbd6 100644
--- a/openwrt/rhctl/Makefile
+++ b/openwrt/rhctl/Makefile
@@ -12,13 +12,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rhctl
-PKG_VERSION:=1.0_RC1
+PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://localhost/
-PKG_MD5SUM:=5ef6f94450062e0daf7eb2b974ace3cf
+PKG_MD5SUM:=b746704c89869f23537d0d8e7d976357
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
@@ -31,7 +31,7 @@ define Package/rhctl
TITLE:=Radio Helsinki control tools
URL:=http://www.helsinki.at
MAINTAINER:=Christian Pointner <equinox@helsinki.at>
- DEPENDS:=+udev udevtrigger
+ DEPENDS:=+liblua +libuci-lua +udev +udevtrigger
endef
define Package/rhctl/conffiles
@@ -40,7 +40,7 @@ endef
define Package/rhctl/description
rhctl is a collection of daemons and tools intended to control the
- main audio switch of Radio Helsinki.
+ main audio switch of Radio Helsinki.
endef
define Build/Configure
@@ -56,12 +56,14 @@ define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
TARGET=Linux \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS) -ldl"
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
+ LDFLAGS="$(TARGET_LDFLAGS) -ldl -lm -lcrypt" \
+ LUA_LDFLAGS="-llua"
$(STRIP) $(PKG_BUILD_DIR)/switchctl
$(STRIP) $(PKG_BUILD_DIR)/serialclient
$(STRIP) $(PKG_BUILD_DIR)/stdioclient
$(STRIP) $(PKG_BUILD_DIR)/heartbeatclient
+ $(STRIP) $(PKG_BUILD_DIR)/luaclient
endef
define Package/rhctl/install
@@ -74,12 +76,16 @@ define Package/rhctl/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/serialclient $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/stdioclient $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/heartbeatclient $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/luaclient $(1)/usr/bin/
$(INSTALL_BIN) ./files/rhctlsh $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/usr/share/rhctl
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.lua $(1)/usr/share/rhctl/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/udev.init $(1)/etc/init.d/udev
$(INSTALL_BIN) ./files/switchctl.init $(1)/etc/init.d/switchctl
$(INSTALL_BIN) ./files/serialclient.init $(1)/etc/init.d/serialclient
$(INSTALL_BIN) ./files/heartbeatclient.init $(1)/etc/init.d/heartbeatclient
+ $(INSTALL_BIN) ./files/luaclient.init $(1)/etc/init.d/luaclient
$(INSTALL_DIR) $(1)/etc/udev/rules.d
$(INSTALL_DATA) ./files/udev.rules $(1)/etc/udev/rules.d/50-rhctl.rules
endef