2017-01-30 23:37:24 +00:00
#
# Copyright (C) 2016 - 2017 Stijn Tintel <stijn@linux-ipv6.be>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := domoticz
PKG_VERSION_MAJOR := 3
PKG_VERSION_PATCH := 5877
PKG_VERSION := $( PKG_VERSION_MAJOR) .$( PKG_VERSION_PATCH)
2017-06-29 11:09:18 +00:00
PKG_RELEASE := 2
2017-01-30 23:37:24 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://github.com/domoticz/domoticz/archive/$( PKG_VERSION) /$( PKG_SOURCE)
PKG_HASH := fb88edbe428851a7a337a85faa93f6da00713b3ad086ff6957031dc9b3b58bba
PKG_LICENSE := GPL-3.0
PKG_LICENSE_FILES := License.txt
PKG_BUILD_PARALLEL := 1
PKG_USE_MIPS16 := 0
CMAKE_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
d e f i n e P a c k a g e / d o m o t i c z
SECTION:= utils
CATEGORY:= Utilities
TITLE:= Open Source Home Automation System
URL:= http://domoticz.com/
MAINTAINER:= Stijn Tintel <stijn@linux-ipv6.be>
USERID:= domoticz = 6144:domoticz= 6144
DEPENDS:= \
+boost \
+boost-date_time \
+boost-system \
+boost-thread \
+libcurl \
+libmosquittopp \
+libopenssl \
+libopenzwave \
+libsqlite3 \
+libstdcpp \
+zlib
e n d e f
d e f i n e P a c k a g e / d o m o t i c z / d e s c r i p t i o n
Domoticz is a Home Automation System that lets you monitor and 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.
e n d e f
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE= Release \
-DUSE_BUILTIN_MQTT= no \
-DUSE_BUILTIN_SQLITE= no \
-DUSE_STATIC_BOOST= no \
-DUSE_STATIC_LIBSTDCXX= no \
-DUSE_STATIC_OPENZWAVE= no \
-DUSE_PYTHON= no
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
# Fix APPVERSION to suppress update popup
sed -i 's/#define APPVERSION.*/#define APPVERSION $(PKG_VERSION_PATCH)/' \
$( PKG_BUILD_DIR) /appversion.default
# Remove unwanted scripts
cd $( PKG_BUILD_DIR) /scripts && rm -rf \
buienradar_rain_example.pl \
_domoticz_main.bat \
download_update.sh \
logrotate/ \
python/ \
readme.txt \
restart_domoticz \
templates/All.Python \
update_domoticz
e n d e f
d e f i n e P a c k a g e / d o m o t i c z / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/config $( 1) /etc/hotplug.d/tty $( 1) /etc/init.d
$( INSTALL_BIN) ./files/domoticz.hotplug $( 1) /etc/hotplug.d/tty/domoticz
$( INSTALL_BIN) ./files/domoticz.init $( 1) /etc/init.d/domoticz
$( INSTALL_CONF) ./files/domoticz.config $( 1) /etc/config/domoticz
$( INSTALL_DIR) $( 1) /usr/share/domoticz $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/Config $( 1) /usr/share/domoticz/openzwave
$( CP) $( PKG_INSTALL_DIR) /usr/scripts $( 1) /usr/share/domoticz/
$( CP) $( PKG_INSTALL_DIR) /usr/www $( 1) /usr/share/domoticz/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/domoticz $( 1) /usr/bin/domoticz
e n d e f
d e f i n e P a c k a g e / d o m o t i c z / c o n f f i l e s
/ e t c / c o n f i g / d o m o t i c z
/ v a r / l i b / d o m o t i c z /
e n d e f
$( eval $ ( call BuildPackage ,domoticz ) )