From patchwork Tue Apr 26 11:29:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fabrice.fontaine@orange.com X-Patchwork-Id: 614926 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3qvLVN68KBz9t5P for ; Tue, 26 Apr 2016 21:30:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 623B788D1E; Tue, 26 Apr 2016 11:30:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iYdapZpGKXfE; Tue, 26 Apr 2016 11:29:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id ABFD588BE6; Tue, 26 Apr 2016 11:29:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F30391CEF48 for ; Tue, 26 Apr 2016 11:29:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EDB012EE67 for ; Tue, 26 Apr 2016 11:29:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AAUkO3vhy11J for ; Tue, 26 Apr 2016 11:29:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relais-inet.francetelecom.com (relais-ias91.francetelecom.com [193.251.215.91]) by silver.osuosl.org (Postfix) with ESMTPS id 3E59C25DB9 for ; Tue, 26 Apr 2016 11:29:55 +0000 (UTC) Received: from omfedm08.si.francetelecom.fr (unknown [xx.xx.xx.4]) by omfedm09.si.francetelecom.fr (ESMTP service) with ESMTP id 0D1472DC11E for ; Tue, 26 Apr 2016 13:29:53 +0200 (CEST) Received: from Exchangemail-eme2.itn.ftgroup (unknown [10.114.31.13]) by omfedm08.si.francetelecom.fr (ESMTP service) with ESMTP id E0D0B23807E for ; Tue, 26 Apr 2016 13:29:52 +0200 (CEST) Received: from r-x-uffo8396.rd.francetelecom.fr (10.168.234.5) by OPEXCLILM6D.corporate.adroot.infra.ftgroup (10.114.31.13) with Microsoft SMTP Server id 14.3.279.2; Tue, 26 Apr 2016 13:29:51 +0200 From: To: Date: Tue, 26 Apr 2016 13:29:47 +0200 X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.168.234.5] Message-ID: <24932_1461670192_571F5130_24932_1368_6_b2fc1042-68bd-4543-a95f-43a1dd14d8ad@OPEXCLILM6D.corporate.adroot.infra.ftgroup> X-PMX-Version: 6.2.1.2478543, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.4.25.91516 Cc: Fabrice Fontaine Subject: [Buildroot] [PATCH v2] domoticz: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Domoticz is a Home Automation System that lets you monitor andi configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device. Signed-off-by: Fabrice Fontaine --- Changes v1 -> v2 (after review of Samuel Martin): - Add a hash file - Replace the dependency on BR2_PACKAGE_LUA_5_2 by a dependency on BR2_PACKAGE_LUA_5_2 or BR2_PACKAGE_LUA_5_3 - Add dependencies on BR2_USE_MMU and !BR2_STATIC_LIBS (from mosquitto) - Add dependency on BR2_PACKAGE_BOOST_ARCH_SUPPORTS (from boost) - Automatically add zwave support in domoticz if the user has selected the openzwave package - Set USE_STATIC_BOOST and USE_STATIC_OPENZWAVE to the correct values in domoticz.mk depending on BR2_STATIC_LIBS value to avoid breaking static-only build package/Config.in | 1 + package/domoticz/Config.in | 32 +++++++++++++++++++++++++++++ package/domoticz/domoticz.hash | 2 ++ package/domoticz/domoticz.mk | 46 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 package/domoticz/Config.in create mode 100644 package/domoticz/domoticz.hash create mode 100644 package/domoticz/domoticz.mk diff --git a/package/Config.in b/package/Config.in index f242181..2156d5b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1320,6 +1320,7 @@ menu "Miscellaneous" source "package/bc/Config.in" source "package/clamav/Config.in" source "package/collectd/Config.in" + source "package/domoticz/Config.in" source "package/empty/Config.in" source "package/gnuradio/Config.in" source "package/googlefontdirectory/Config.in" diff --git a/package/domoticz/Config.in b/package/domoticz/Config.in new file mode 100644 index 0000000..c7c2878 --- /dev/null +++ b/package/domoticz/Config.in @@ -0,0 +1,32 @@ +config BR2_PACKAGE_DOMOTICZ + bool "domoticz" + depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS # boost + depends on BR2_USE_MMU # mosquitto + depends on !BR2_STATIC_LIBS # mosquitto + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + depends on BR2_PACKAGE_LUA_5_2 || BR2_PACKAGE_LUA_5_3 + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_DATE_TIME + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_BOOST_THREAD + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_MOSQUITTO + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_SQLITE + select BR2_PACKAGE_ZLIB + help + Domoticz is a Home Automation System that lets you monitor andi + configure various devices like: Lights, Switches, various + sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water + and much more. Notifications/Alerts can be sent to any mobile device. + + http://domoticz.com + +comment "domoticz needs lua >= 5.2 and a toolchain w/ C++, threads, wchar, dynamic library" + depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS + depends on BR2_USE_MMU + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || BR2_STATIC_LIBS || \ + !(BR2_PACKAGE_LUA_5_2 || BR2_PACKAGE_LUA_5_3) diff --git a/package/domoticz/domoticz.hash b/package/domoticz/domoticz.hash new file mode 100644 index 0000000..9180a9b --- /dev/null +++ b/package/domoticz/domoticz.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 02b4cdde8e376258aeae3d5621edf8bb6b3563c34282e50194db343fcec9c0f5 domoticz-3.4834.tar.gz diff --git a/package/domoticz/domoticz.mk b/package/domoticz/domoticz.mk new file mode 100644 index 0000000..1ca0a24 --- /dev/null +++ b/package/domoticz/domoticz.mk @@ -0,0 +1,46 @@ +################################################################################ +# +# domoticz +# +################################################################################ + +DOMOTICZ_VERSION = 3.4834 +DOMOTICZ_SITE = $(call github,domoticz,domoticz,$(DOMOTICZ_VERSION)) +DOMOTICZ_LICENSE = GPLv3 +DOMOTICZ_LICENSE_FILES = License.txt +DOMOTICZ_DEPENDENCIES = boost host-pkgconf libcurl lua mosquitto openssl \ + sqlite zlib + +# USE_STATIC_BOOST has to be set manually otherwise domoticz will not found the +# boost libraries +# By default, domoticz sets USE_STATIC_BOOST to no +ifeq ($(BR2_STATIC_LIBS),y) +DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=yes +else +DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=no +endif + +# Do not use any built-in libraries which are enabled by default for lua, +# sqlite and mqtt +DOMOTICZ_CONF_OPTS += -DUSE_BUILTIN_LUA=no +DOMOTICZ_CONF_OPTS += -DUSE_BUILTIN_SQLITE=no +DOMOTICZ_CONF_OPTS += -DUSE_BUILTIN_MQTT=no + +ifeq ($(BR2_PACKAGE_LIBUSB),y) +DOMOTICZ_DEPENDENCIES += libusb +endif + +ifeq ($(BR2_PACKAGE_OPENZWAVE),y) +DOMOTICZ_DEPENDENCIES += openzwave + +# USE_STATIC_OPENZWAVE has to be set manually otherwise domoticz will not found +# the openzwave library +# By default, domoticz sets USE_STATIC_OPENZWAVE to yes +ifeq ($(BR2_STATIC_LIBS),y) +DOMOTICZ_CONF_OPTS += -DUSE_STATIC_OPENZWAVE=yes +else +DOMOTICZ_CONF_OPTS += -DUSE_STATIC_OPENZWAVE=no +endif +endif + +$(eval $(cmake-package))