You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2010 Telldus Technologies AB
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=telldus-core
  8. PKG_VERSION:=2.1.2
  9. PKG_RELEASE:=6
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://download.telldus.com/TellStick/Software/telldus-core/
  12. PKG_HASH:=a20f6c74814afc23312d2c93ebbb37fdea9deaaee05ae7b6a6275e11e4662014
  13. PKG_MAINTAINER:=Peter Liedholm <PeterFromSwe884@gmail.com>
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=LICENSE
  16. CMAKE_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=argp-standalone
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../devel/ninja/ninja-cmake.mk
  20. define Package/telldus-core
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Telldus TellStick USB interface
  24. URL:=https://telldus.com
  25. DEPENDS:=+confuse +libftdi +libstdcpp
  26. endef
  27. define Package/telldus-core/description
  28. Telldus driver for USB-based 433 MHz RF transceiver for home automation.
  29. MUST be built with full language support, (don't know how to DEPEND that)
  30. endef
  31. define Package/telldus-core/conffiles
  32. /etc/tellstick.conf
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DBUILD_LIBTELLDUS-CORE=1 \
  36. -DBUILD_TDTOOL=1 \
  37. -DGENERATE_MAN=0
  38. define Package/telldus-core/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tdtool $(1)/usr/bin
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/telldusd $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tdadmin $(1)/usr/sbin
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtelldus* $(1)/usr/lib
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_CONF) ./files/tellstick.conf $(1)/etc
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/telldusd $(1)/etc/init.d
  50. endef
  51. $(eval $(call BuildPackage,telldus-core))