summaryrefslogtreecommitdiff
path: root/www/domoticz/Makefile
blob: 71b4baf5b8853b277b49b7c97efa47b0391e51b9 (plain) (blame)
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
PORTNAME=	domoticz
DISTVERSION=	2024.7
PORTREVISION=	2
CATEGORIES=	www

MAINTAINER=	kiwi@FreeBSD.org
COMMENT=	Home Automation System
WWW=		https://www.domoticz.com

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/License.txt

LIB_DEPENDS=	libcurl.so:ftp/curl \
		libboost_system.so:devel/boost-libs \
		libjsoncpp.so:devel/jsoncpp \
		libmosquitto.so:net/mosquitto

USES=		cmake compiler:c++11-lang cpe minizip pkgconfig ssl lua:53 sqlite
USE_GITHUB=	yes
USE_RC_SUBR=	domoticz

CMAKE_OFF+=	GIT_SUBMODULE \
		USE_STATIC_BOOST \
		USE_OPENSSL_STATIC \
		USE_STATIC_BOOST \
		USE_BUILTIN_SQLITE \
		USE_BUILTIN_MINIZIP \
		USE_BUILTIN_JSONCPP \
		USE_BUILTIN_MQTT \
		USE_STATIC_OPENZWAVE

CMAKE_INSTALL_PREFIX=	${PREFIX}/domoticz

CONFLICTS_INSTALL=	domoticz-devel-[234]*

EXTRACT_AFTER_ARGS=	--exclude ${PORTNAME}-${PORTVERSION}/hardware/plugins/Include \
			--no-same-owner --no-same-permissions

USERS=		domoticz
GROUPS=		domoticz

OPTIONS_DEFINE=		PRECOMP PYTHON
OPTIONS_DEFAULT=	PRECOMP PYTHON
OPTIONS_SUB=	YES

PRECOMP_DESC=	Enable usage of precompiled header to speed build time
PYTHON_DESC=	Enable Python for Plugins and Event-Scripts

PRECOMP_CMAKE_BOOL=	USE_PRECOMPILED_HEADER

PYTHON_USES=		python:3.9+
PYTHON_CMAKE_BOOL=	USE_PYTHON

post-install:
	${MKDIR} ${STAGEDIR}/var/db/domoticz ${STAGEDIR}/var/run/domoticz

.include <bsd.port.mk>