Merge pull request #13522 from neheb/quasse
[feed/packages.git] / utils / telldus-core / Makefile
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
8 PKG_NAME:=telldus-core
9 PKG_VERSION:=2.1.2
10 PKG_RELEASE:=5
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://download.telldus.com/TellStick/Software/telldus-core/
14 PKG_HASH:=a20f6c74814afc23312d2c93ebbb37fdea9deaaee05ae7b6a6275e11e4662014
15
16 PKG_MAINTAINER:=Peter Liedholm <PeterFromSwe884@gmail.com>
17 PKG_LICENSE:=LGPL-2.1-or-later
18 PKG_LICENSE_FILES:=LICENSE
19
20 CMAKE_INSTALL:=1
21 PKG_BUILD_PARALLEL:=0
22 PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/telldus-core
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=Telldus TellStick USB interface
32 URL:=https://telldus.com
33 DEPENDS:=+confuse +libftdi +libstdcpp $(ICONV_DEPENDS)
34 endef
35
36 define Package/telldus-core/description
37 Telldus driver for USB-based 433 MHz RF transceiver for home automation.
38 MUST be built with full language support, (don't know how to DEPEND that)
39 endef
40
41 define Package/telldus-core/conffiles
42 /etc/tellstick.conf
43 endef
44
45 CMAKE_OPTIONS += \
46 -DBUILD_LIBTELLDUS-CORE=1 \
47 -DBUILD_TDTOOL=1 \
48 -DGENERATE_MAN=0 \
49 -DICONV_LIBRARY=-liconv
50
51 define Package/telldus-core/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tdtool $(1)/usr/bin
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/telldusd $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tdadmin $(1)/usr/sbin
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtelldus* $(1)/usr/lib
59 $(INSTALL_DIR) $(1)/etc/config
60 $(INSTALL_CONF) ./files/tellstick.conf $(1)/etc
61 $(INSTALL_DIR) $(1)/etc/init.d
62 $(INSTALL_BIN) ./files/telldusd $(1)/etc/init.d
63 endef
64
65 $(eval $(call BuildPackage,telldus-core))