From patchwork Fri Apr 22 14:49:30 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: 613686 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3qrz7F72Zhz9sXR for ; Sat, 23 Apr 2016 00:50:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1FAD9C05C1; Fri, 22 Apr 2016 14:50:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SeRWJXoy86z0; Fri, 22 Apr 2016 14:50:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3CD68C059F; Fri, 22 Apr 2016 14:50:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 281CC1C1750 for ; Fri, 22 Apr 2016 14:50:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1CEE0C04BC for ; Fri, 22 Apr 2016 14:50:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GPiai_fHmaYH for ; Fri, 22 Apr 2016 14:50:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relais-inet.francetelecom.com (relais-ias92.francetelecom.com [193.251.215.92]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 20211C0433 for ; Fri, 22 Apr 2016 14:50:11 +0000 (UTC) Received: from omfedm06.si.francetelecom.fr (unknown [xx.xx.xx.2]) by omfedm09.si.francetelecom.fr (ESMTP service) with ESMTP id 3D8D32DC2FD for ; Fri, 22 Apr 2016 16:50:09 +0200 (CEST) Received: from Exchangemail-eme2.itn.ftgroup (unknown [10.114.31.13]) by omfedm06.si.francetelecom.fr (ESMTP service) with ESMTP id 1982327C06E for ; Fri, 22 Apr 2016 16:50:09 +0200 (CEST) Received: from r-x-uffo8396.rd.francetelecom.fr (10.168.234.3) by OPEXCLILM6D.corporate.adroot.infra.ftgroup (10.114.31.13) with Microsoft SMTP Server id 14.3.279.2; Fri, 22 Apr 2016 16:50:04 +0200 From: To: Date: Fri, 22 Apr 2016 16:49:30 +0200 X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.168.234.3] Message-ID: <30737_1461336609_571A3A21_30737_6929_1_000623e0-df53-498e-8145-247406707520@OPEXCLILM6D.corporate.adroot.infra.ftgroup> X-PMX-Version: 6.2.1.2478543, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.4.22.133315 Cc: Fabrice Fontaine Subject: [Buildroot] [PATCH 1/1] 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 --- package/Config.in | 1 + package/domoticz/Config.in | 39 +++++++++++++++++++++++++++++++++++++++ package/domoticz/domoticz.mk | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 package/domoticz/Config.in create mode 100644 package/domoticz/domoticz.mk diff --git a/package/Config.in b/package/Config.in index cf697ab..15ed544 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1319,6 +1319,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..085b260 --- /dev/null +++ b/package/domoticz/Config.in @@ -0,0 +1,39 @@ +config BR2_PACKAGE_DOMOTICZ + bool "domoticz" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + depends on BR2_PACKAGE_LUA_5_2 + 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" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || !BR2_PACKAGE_LUA_5_2 + +if BR2_PACKAGE_DOMOTICZ + +config BR2_PACKAGE_DOMOTICZ_ZWAVE_SUPPORT + bool "domoticz zwave support" + depends on BR2_PACKAGE_OPENZWAVE + help + Enable ZWave support through openzwave library. + +comment "domoticz zwave support depends on openzwave library" + depends on !BR2_PACKAGE_OPENZWAVE + +endif diff --git a/package/domoticz/domoticz.mk b/package/domoticz/domoticz.mk new file mode 100644 index 0000000..3a427c0 --- /dev/null +++ b/package/domoticz/domoticz.mk @@ -0,0 +1,33 @@ +################################################################################ +# +# 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 + +# Do not use static version of boost +DOMOTICZ_CONF_OPTS = -DUSE_STATIC_BOOST=no + +# 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 + +# ZWave support depends on open-zwave. +ifeq ($(BR2_PACKAGE_DOMOTICZ_ZWAVE_SUPPORT),y) +DOMOTICZ_DEPENDENCIES += openzwave +DOMOTICZ_CONF_OPTS += -DUSE_STATIC_OPENZWAVE=no +endif + +$(eval $(cmake-package))