14051a6344
This version includes the patch on execinfo (commit 775da272719b52bca37b44a40e935a1eb9d10466) so remove the 0001-add-proper-check-for-detecting-header-execinfo.h.patch file This version also fixes arc and musl build (ambiguous call to abs and missing linux/ioctl header): http://autobuild.buildroot.net/results/b5406ca587592a3bac446d1f1df93d3eb45b96a9 fixed by commit 331cd7d6eef6f9f2658b91e662644d88c31eaf64 http://autobuild.buildroot.net/results/62ec0d348153dff0efd4c1975a9198c17f01f1fa fixed by commit 6ea21db228124565466bf16b0400d40a5eaad30d Due to DOS line endings, it is easier to reference this beta release than converting git patches. The stable release should be released in the first week of October. Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
78 lines
2.5 KiB
Makefile
78 lines
2.5 KiB
Makefile
################################################################################
|
|
#
|
|
# domoticz
|
|
#
|
|
################################################################################
|
|
|
|
DOMOTICZ_VERSION = 87286ee76ad15420c52689f1e4eeeab56fb04d40
|
|
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
|
|
|
|
# Due to the dependency on mosquitto, domoticz depends on
|
|
# !BR2_STATIC_LIBS so set USE_STATIC_BOOST to OFF
|
|
DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=OFF
|
|
|
|
# Do not use any built-in libraries which are enabled by default for
|
|
# lua, sqlite and mqtt
|
|
DOMOTICZ_CONF_OPTS += \
|
|
-DUSE_BUILTIN_LUA=OFF \
|
|
-DUSE_BUILTIN_SQLITE=OFF \
|
|
-DUSE_BUILTIN_MQTT=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
DOMOTICZ_DEPENDENCIES += libusb
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENZWAVE),y)
|
|
DOMOTICZ_DEPENDENCIES += openzwave
|
|
|
|
# Due to the dependency on mosquitto, domoticz depends on
|
|
# !BR2_STATIC_LIBS so set USE_STATIC_OPENZWAVE to OFF otherwise
|
|
# domoticz will not find the openzwave library as it searches by
|
|
# default a static library.
|
|
DOMOTICZ_CONF_OPTS += -DUSE_STATIC_OPENZWAVE=OFF
|
|
endif
|
|
|
|
# Install domoticz in a dedicated directory (/opt/domoticz) as
|
|
# domoticz expects by default that all its subdirectories (www,
|
|
# Config, scripts, ...) are in the binary directory.
|
|
DOMOTICZ_TARGET_DIR = /opt/domoticz
|
|
DOMOTICZ_CONF_OPTS += -DCMAKE_INSTALL_PREFIX=$(DOMOTICZ_TARGET_DIR)
|
|
|
|
# Delete License.txt and updatedomo files installed by domoticz in target
|
|
# directory
|
|
# Do not delete History.txt as it is used in source code
|
|
define DOMOTICZ_REMOVE_UNNEEDED_FILES
|
|
$(RM) $(TARGET_DIR)/$(DOMOTICZ_TARGET_DIR)/License.txt
|
|
$(RM) $(TARGET_DIR)/$(DOMOTICZ_TARGET_DIR)/updatedomo
|
|
endef
|
|
|
|
DOMOTICZ_POST_INSTALL_TARGET_HOOKS += DOMOTICZ_REMOVE_UNNEEDED_FILES
|
|
|
|
# Use dedicated init scripts for systemV and systemd instead of using
|
|
# domoticz.sh as it is not compatible with buildroot init system
|
|
define DOMOTICZ_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/domoticz/S99domoticz \
|
|
$(TARGET_DIR)/etc/init.d/S99domoticz
|
|
endef
|
|
|
|
define DOMOTICZ_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 644 package/domoticz/domoticz.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/domoticz.service
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
ln -sf ../../../../usr/lib/systemd/system/domoticz.service \
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/domoticz.service
|
|
endef
|
|
|
|
$(eval $(cmake-package))
|