summaryrefslogtreecommitdiff
path: root/comms/telldus-core/Makefile
blob: 3efde174cb59fee96cf9a30cbbe6d9b45945e07a (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
# Created by: Johan Strom <johna@stromnet.se>
# $FreeBSD$

PORTNAME=	telldus-core
PORTVERSION=	2.1.2
PORTREVISION=	1
CATEGORIES=	comms
MASTER_SITES=	http://download.telldus.se/TellStick/Software/telldus-core/

MAINTAINER=	johan@stromnet.se
COMMENT=	Tellstick Telldus daemon + library

LICENSE=	LGPL21

BUILD_DEPENDS=	help2man:${PORTSDIR}/misc/help2man
LIB_DEPENDS=	libftdi.so:${PORTSDIR}/devel/libftdi \
		libconfuse.so:${PORTSDIR}/devel/libconfuse \
		libargp.so:${PORTSDIR}/devel/argp-standalone

USES= 		cmake compiler:c++11-lang iconv:wchar_t

#CMAKE_VERBOSE=yes
CMAKE_ARGS+=-DGENERATE_MAN=TRUE
# Note: these are internal defines and shall NOT contain ${STAGEDIR}
CMAKE_ARGS+=-DSYSCONF_INSTALL_DIR="${PREFIX}/etc"
CMAKE_ARGS+=-DSTATE_INSTALL_DIR="/var/telldus"

MAKE_JOBS_UNSAFE=	yes

USE_RC_SUBR=	telldusd
USER=		nobody
GROUP=		dialer

.include <bsd.port.pre.mk>

post-patch:
# remove tr1 if using libc++
.if ${COMPILER_FEATURES:Mlibc++}
	@${REINPLACE_CMD} -e 's|tr1::||' ${WRKSRC}/common/Event.h
.endif

post-install:
	cd ${STAGEDIR}${PREFIX}/etc && \
		 ${MV} tellstick.conf tellstick.conf.sample
	${RM} ${STAGEDIR}/var/telldus/telldus-core.conf

.include <bsd.port.post.mk>