freebsd-ports/comms/telldus-core/Makefile
John Marino 941fc51733 Add new port comms/telldus-core
PR:		189221
Submitted by:	johan (stromnet.se)

Allows access to Telldus Tellstick USB dongles for communicating with
433MHz devices in your home.

Provides "telldusd", the daemon which keeps track of your tellstick
devices. Through a UNIX socket, the sensors and devices can be used/
controlled from the command line tool "tdtool", or via the libtelldus-core
C client library.
2014-08-15 14:43:47 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Johan Strom <johna@stromnet.se>
# $FreeBSD$
PORTNAME= telldus-core
PORTVERSION= 2.1.2
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= iconv cmake compiler:c++11-lang
#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>