Marcel Telka
2024-04-07 8a23b876d5e0a9d2a1ae972f152fad47a355daa4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2022 erwinlem
#
 
BUILD_STYLE=cmake
USE_OPENSSL11= yes
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=        domoticz
COMPONENT_VERSION=    2022.1
COMPONENT_SUMMARY=    Open source Home Automation System
COMPONENT_PROJECT_URL=    http://www.domoticz.com/
COMPONENT_FMRI=        network/${COMPONENT_NAME}
COMPONENT_CLASSIFICATION=Applications/Internet
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_URL=    https://github.com/domoticz/domoticz/archive/refs/tags/$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH=    sha256:8282cb71c924b6ef92503976d50f966f2c785eab8f8cffa1136ac133f0241157
COMPONENT_LICENSE=    GPL-3.0 license
COMPONENT_LICENSE_FILE=    License.txt
 
TEST_TARGET=$(NO_TESTS) # if no testsuite enabled
include $(WS_MAKE_RULES)/common.mk
 
CMAKE_PREFIX = /usr/${COMPONENT_NAME}
 
COMPONENT_PRE_CMAKE_ACTION  = (git clone https://github.com/domoticz/minizip.git $(SOURCE_DIR)/extern/minizip)
 
CXXFLAGS += -pthreads
LDFLAGS += -lnsl -lsocket -lsqlite3
 
CMAKE_OPTIONS+= -DUSE_BUILTIN_JSONCPP=OFF
#CMAKE_OPTIONS+= -DUSE_BUILTIN_MINIZIP=OFF
CMAKE_OPTIONS+= -DUSE_BUILTIN_MQTT=OFF
CMAKE_OPTIONS+= -DUSE_BUILTIN_SQLITE=OFF
 
# Build dependencies
REQUIRED_PACKAGES+= library/cereal
 
# Auto-generated dependencies
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += database/sqlite-3
REQUIRED_PACKAGES += library/jsoncpp
REQUIRED_PACKAGES += library/security/openssl-11
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += network/mosquitto
REQUIRED_PACKAGES += runtime/lua-53
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/usb/libusb
REQUIRED_PACKAGES += web/curl