2019-05-12 07:38:50 +00:00
|
|
|
#
|
2019-01-19 16:04:14 +00:00
|
|
|
# Copyright (C) 2010 Telldus Technologies AB
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=telldus-core
|
|
|
|
PKG_VERSION:=2.1.2
|
2022-09-19 03:06:20 +00:00
|
|
|
PKG_RELEASE:=8
|
2019-01-19 16:04:14 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.telldus.com/TellStick/Software/telldus-core/
|
|
|
|
PKG_HASH:=a20f6c74814afc23312d2c93ebbb37fdea9deaaee05ae7b6a6275e11e4662014
|
2019-10-04 00:01:08 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Peter Liedholm <PeterFromSwe884@gmail.com>
|
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
CMAKE_INSTALL:=1
|
2021-03-04 22:45:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=argp-standalone
|
2019-01-19 16:04:14 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2019-01-19 16:04:14 +00:00
|
|
|
|
2022-04-17 02:15:20 +00:00
|
|
|
define Download/argp-cmake
|
|
|
|
URL:=@GITHUB/alehaa/CMake-argp/e7e77e68d062708edf055f944d3094b0ce0b11b8/cmake
|
|
|
|
FILE:=Findargp.cmake
|
|
|
|
HASH:=b74e961260d17bc9af868be59053e50739dc94e06cbe73e3fced414a070a29fd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
$(eval $(call Download,argp-cmake))
|
|
|
|
$(Build/Prepare/Default)
|
|
|
|
$(CP) $(DL_DIR)/Findargp.cmake $(PKG_BUILD_DIR)/cmake/
|
|
|
|
endef
|
|
|
|
|
2019-01-19 16:04:14 +00:00
|
|
|
define Package/telldus-core
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Telldus TellStick USB interface
|
2019-10-04 00:01:08 +00:00
|
|
|
URL:=https://telldus.com
|
2020-10-27 05:20:50 +00:00
|
|
|
DEPENDS:=+confuse +libftdi +libstdcpp
|
2019-01-19 16:04:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/telldus-core/description
|
|
|
|
Telldus driver for USB-based 433 MHz RF transceiver for home automation.
|
|
|
|
MUST be built with full language support, (don't know how to DEPEND that)
|
|
|
|
endef
|
|
|
|
|
2019-10-04 00:01:08 +00:00
|
|
|
define Package/telldus-core/conffiles
|
|
|
|
/etc/tellstick.conf
|
|
|
|
endef
|
|
|
|
|
2020-06-02 23:03:32 +00:00
|
|
|
CMAKE_OPTIONS += \
|
2019-01-19 16:04:14 +00:00
|
|
|
-DBUILD_LIBTELLDUS-CORE=1 \
|
|
|
|
-DBUILD_TDTOOL=1 \
|
2020-10-27 05:20:50 +00:00
|
|
|
-DGENERATE_MAN=0
|
2019-01-19 16:04:14 +00:00
|
|
|
|
|
|
|
define Package/telldus-core/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tdtool $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/telldusd $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tdadmin $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtelldus* $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/tellstick.conf $(1)/etc
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/telldusd $(1)/etc/init.d
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,telldus-core))
|