summaryrefslogtreecommitdiffstats
path: root/net/linknx/Makefile
blob: a34aed1ce7f321752102bbce44eaca068fdc9af6 (plain)
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
58
# Created by: Björn König <bkoenig@alpha-tierchen.de>
# $FreeBSD$

PORTNAME=	linknx
PORTVERSION=	0.0.1.32
CATEGORIES=	net
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	bkoenig@alpha-tierchen.de
COMMENT=	Rule-based event handling in a KNX installation

LICENSE=	GPLv2

LIB_DEPENDS=	libpthsem.so:devel/pthsem
BUILD_DEPENDS=	${LOCALBASE}/lib/libargp.a:devel/argp-standalone

BROKEN_armv6=		fails to configure: checking for GNU Pth... Segmentation fault
BROKEN_mips=		fails to configure: checking for GNU Pth... Segmentation fault
BROKEN_mips64=		fails to configure: checking for GNU Pth... Segmentation fault

USES=	gmake autoreconf pkgconfig
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib"

OPTIONS_DEFINE=	LIBESMTP LIBCURL LIBLUA MYSQL
OPTIONS_DEFAULT=	LIBESMTP
OPTIONS_SUB=
LIBESMTP_DESC=	Install libesmtp for SMTP support
LIBCURL_DESC=	Install libcurl for Clickatell SMS support
LIBLUA_DESC=	Install liblua for scripting
MYSQL_DESC=	Install libmysql for logging & persist

LIBESMTP_CONFIGURE_ENABLE=	smtp
LIBESMTP_LIB_DEPENDS=	libesmtp.so:mail/libesmtp
LIBCURL_CONFIGURE_WITH=	libcurl
LIBCURL_LIB_DEPENDS=	libcurl.so:ftp/curl
# autoreconf needs that anyway.
LIBCURL_BUILD_DEPENDS_OFF=	${LOCALBASE}/share/aclocal/libcurl.m4:ftp/curl
LIBLUA_CONFIGURE_WITH=	lua
LIBLUA_USES=	lua
LIBLUA_CFLAGS=	-I${LUA_INCDIR}
LIBLUA_LDFLAGS=	-L${LUA_LIBDIR}
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}/bin/mysql_config
MYSQL_CONFIGURE_OFF=	--without-mysql
MYSQL_USE=	MYSQL=yes

PORTDOCS=	*

PLIST_FILES=	bin/linknx

USE_RC_SUBR=	${PORTNAME}

post-patch:
	${REINPLACE_CMD} "s/LUAPC=lua/LUAPC=lua-${LUA_VER}/" ${WRKSRC}/configure.ac
	cd ${WRKSRC} && ${TOUCH} NEWS README AUTHORS

.include <bsd.port.mk>
OpenPOWER on IntegriCloud