@@ -18,54 +18,44 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
1818USES = cmake compiler:c++11-lang cpe lua:53 minizip pkgconfig sqlite \
1919 ssl
2020
21- CONFLICTS_INSTALL? = domoticz-[234]*
21+ USE_GITHUB = yes
22+ GH_TAGNAME = a580a6b1f
2223
23- # Do not extract python Includes
24- EXTRACT_AFTER_ARGS = --exclude hardware/plugins/Include
24+ CONFLICTS_INSTALL = domoticz-[234]*
2525
26- OPTIONS_DEFINE = PRECOMP PYTHON TELLDUS
27- OPTIONS_DEFAULT = PRECOMP PYTHON
28- OPTIONS_SUB = YES
29- PRECOMP_DESC = Enable usage of precompiled header to speed build time
30- PYTHON_DESC = Enable support for Python Plugins
31- TELLDUS_DESC = Enable support for Telldus
32-
33- .include <bsd.port.options.mk>
26+ EXTRACT_AFTER_ARGS = --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/hardware/plugins/Include \
27+ --no-same-owner --no-same-permissions
3428
3529# This hack is to get rid of dependency of git while building
3630# the package.
3731DOMOTICZ_REL = 16186
3832DOMOTICZ_TS = 1724156096
39- USE_GITHUB = yes
40- GH_TAGNAME = a580a6b1f
4133
4234USE_RC_SUBR = domoticz
43-
4435USERS = domoticz
4536GROUPS = domoticz
4637
47- CMAKE_INSTALL_PREFIX = ${PREFIX}/domoticz
48- CMAKE_OFF+ = GIT_SUBMODULE USE_STATIC_BOOST USE_OPENSSL_STATIC \
49- USE_STATIC_BOOST USE_BUILTIN_JSONCPP USE_BUILTIN_MINIZIP \
50- USE_BUILTIN_MQTT USE_STATIC_OPENZWAVE USE_BUILTIN_SQLITE \
51- USE_LUA_STATIC
52-
53- .if ${PORT_OPTIONS :MPYTHON}
54- CMAKE_ON+ = USE_PYTHON
55- USES+ = python:3.9+
56- .else
57- CMAKE_OFF+ = USE_PYTHON
58- .endif
59-
60- .if ${PORT_OPTIONS :MTELLDUS}
61- LIB_DEPENDS+ = libtelldus-core.so:comms/telldus-core
62- .endif
63-
64- .if ${PORT_OPTIONS :MPRECOMP}
65- CMAKE_ON+ = USE_PRECOMPILED_HEADER
66- .else
67- CMAKE_OFF+ = USE_PRECOMPILED_HEADER
68- .endif
38+ CMAKE_INSTALL_PREFIX = ${PREFIX}/domoticz
39+
40+ CMAKE_OFF = GIT_SUBMODULE \
41+ USE_BUILTIN_JSONCPP \
42+ USE_BUILTIN_MINIZIP \
43+ USE_BUILTIN_MQTT \
44+ USE_LUA_STATIC \
45+ USE_STATIC_BOOST \
46+ USE_STATIC_OPENZWAVE
47+
48+ OPTIONS_DEFINE = PRECOMP PYTHON
49+ OPTIONS_DEFAULT = PRECOMP PYTHON
50+ OPTIONS_SUB = yes
51+
52+ PRECOMP_DESC = Enable usage of precompiled header to speed build time
53+ PYTHON_DESC = Enable support for Python Plugins
54+
55+ PYTHON_USES = python:3.9+
56+ PYTHON_CMAKE_BOOL = USE_PYTHON
57+
58+ PRECOMP_CMAKE_BOOL = USE_PRECOMPILED_HEADER
6959
7060post-patch :
7161 @${REINPLACE_CMD} -e " s,\/opt,${PREFIX} ,g" ${WRKSRC} /CMakeLists.txt
0 commit comments