libgd: avoid recursive and redundant dependencies
[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:=7
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_DEPENDS:=argp-standalone
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
25
26 define Download/argp-cmake
27 URL:=@GITHUB/alehaa/CMake-argp/e7e77e68d062708edf055f944d3094b0ce0b11b8/cmake
28 FILE:=Findargp.cmake
29 HASH:=b74e961260d17bc9af868be59053e50739dc94e06cbe73e3fced414a070a29fd
30 endef
31
32 define Build/Prepare
33 $(eval $(call Download,argp-cmake))
34 $(Build/Prepare/Default)
35 $(CP) $(DL_DIR)/Findargp.cmake $(PKG_BUILD_DIR)/cmake/
36 endef
37
38 define Package/telldus-core
39 SECTION:=utils
40 CATEGORY:=Utilities
41 TITLE:=Telldus TellStick USB interface
42 URL:=https://telldus.com
43 DEPENDS:=+confuse +libftdi +libstdcpp
44 endef
45
46 define Package/telldus-core/description
47 Telldus driver for USB-based 433 MHz RF transceiver for home automation.
48 MUST be built with full language support, (don't know how to DEPEND that)
49 endef
50
51 define Package/telldus-core/conffiles
52 /etc/tellstick.conf
53 endef
54
55 CMAKE_OPTIONS += \
56 -DBUILD_LIBTELLDUS-CORE=1 \
57 -DBUILD_TDTOOL=1 \
58 -DGENERATE_MAN=0
59
60 define Package/telldus-core/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tdtool $(1)/usr/bin
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/telldusd $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tdadmin $(1)/usr/sbin
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtelldus* $(1)/usr/lib
68 $(INSTALL_DIR) $(1)/etc/config
69 $(INSTALL_CONF) ./files/tellstick.conf $(1)/etc
70 $(INSTALL_DIR) $(1)/etc/init.d
71 $(INSTALL_BIN) ./files/telldusd $(1)/etc/init.d
72 endef
73
74 $(eval $(call BuildPackage,telldus-core))