Skip to content

Commit 571995f

Browse files
Daniel EngbergDaniel Engberg
authored andcommitted
www/domoticz-devel: Improve port
* Add --no-same-owner --no-same-permissions to EXTRACT_AFTER_ARGS https://cgit.freebsd.org/ports/tree/Mk/bsd.port.mk#n705 * Rework and sort OPTIONS See https://docs.freebsd.org/en/books/porters-handbook/book/#options-cmake_bool * Remove variables in CMAKE_OFF that are already disabled by default * Remove TELLDUS which was removed in 2023 Reference: https://cgit.freebsd.org/ports/commit/?id=55660d2e5466486b38bd437a94f5ce5d089a1e2f PR: 281016 Reviewed by: Xavier Beaudouin <kiwi@oav.net> (maintainer)
1 parent 0a5b79b commit 571995f

File tree

1 file changed

+26
-36
lines changed

1 file changed

+26
-36
lines changed

‎www/domoticz-devel/Makefile‎

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,44 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
1818
USES= 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.
3731
DOMOTICZ_REL= 16186
3832
DOMOTICZ_TS= 1724156096
39-
USE_GITHUB= yes
40-
GH_TAGNAME= a580a6b1f
4133

4234
USE_RC_SUBR= domoticz
43-
4435
USERS= domoticz
4536
GROUPS= 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

7060
post-patch:
7161
@${REINPLACE_CMD} -e "s,\/opt,${PREFIX},g" ${WRKSRC}/CMakeLists.txt

0 commit comments

Comments
 (0)