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.

63 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_PARALLEL:=0
  18. PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/telldus-core
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Telldus TellStick USB interface
  25. URL:=https://telldus.com
  26. DEPENDS:=+confuse +libftdi +libstdcpp
  27. endef
  28. define Package/telldus-core/description
  29. Telldus driver for USB-based 433 MHz RF transceiver for home automation.
  30. MUST be built with full language support, (don't know how to DEPEND that)
  31. endef
  32. define Package/telldus-core/conffiles
  33. /etc/tellstick.conf
  34. endef
  35. CMAKE_OPTIONS += \
  36. -DBUILD_LIBTELLDUS-CORE=1 \
  37. -DBUILD_TDTOOL=1 \
  38. -DGENERATE_MAN=0
  39. define Package/telldus-core/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tdtool $(1)/usr/bin
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/telldusd $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tdadmin $(1)/usr/sbin
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtelldus* $(1)/usr/lib
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_CONF) ./files/tellstick.conf $(1)/etc
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/telldusd $(1)/etc/init.d
  51. endef
  52. $(eval $(call BuildPackage,telldus-core))