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.

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