Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= linknx |
4 |
PORTNAME= linknx |
5 |
PORTVERSION= 0.0.1.25 |
5 |
PORTVERSION= 0.0.1.30 |
6 |
PORTREVISION= 4 |
|
|
7 |
CATEGORIES= net |
6 |
CATEGORIES= net |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
9 |
|
8 |
|
Lines 10-45
Link Here
|
10 |
MAINTAINER= bkoenig@alpha-tierchen.de |
9 |
MAINTAINER= bkoenig@alpha-tierchen.de |
11 |
COMMENT= Rule-based event handling in a KNX installation |
10 |
COMMENT= Rule-based event handling in a KNX installation |
12 |
|
11 |
|
13 |
LIB_DEPENDS= pthsem.20:${PORTSDIR}/devel/pthsem |
12 |
LICENSE= GPLv2 |
|
|
13 |
|
14 |
LIB_DEPENDS= libpthsem.so:${PORTSDIR}/devel/pthsem |
14 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone |
15 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone |
15 |
|
16 |
|
|
|
17 |
USES= gmake |
16 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
17 |
USE_GMAKE= yes |
19 |
USE_AUTOTOOLS= autoconf |
18 |
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \ |
20 |
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \ |
19 |
LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib" |
21 |
LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib" |
20 |
|
22 |
|
21 |
OPTIONS_DEFINE= LIBESMTP LIBCURL |
23 |
OPTIONS_DEFINE= LIBESMTP LIBCURL LIBLUA MYSQL |
22 |
OPTIONS_DEFAULT= LIBESMTP |
24 |
OPTIONS_DEFAULT= LIBESMTP |
|
|
25 |
OPTIONS_SUB= |
23 |
LIBESMTP_DESC= Install libesmtp for SMTP support |
26 |
LIBESMTP_DESC= Install libesmtp for SMTP support |
24 |
LIBCURL_DESC= Install libcurl for Clickatell SMS support |
27 |
LIBCURL_DESC= Install libcurl for Clickatell SMS support |
|
|
28 |
LIBLUA_DESC= Install lilua for scripting |
29 |
MYSQL_DESC= Install libmysql for logging & persist |
25 |
|
30 |
|
26 |
NO_STAGE= yes |
31 |
LIBESMTP_CONFIGURE_ENABLE= smtp |
27 |
.include <bsd.port.pre.mk> |
32 |
LIBESMTP_LIB_DEPENDS= libesmtp.so:${PORTSDIR}/mail/libesmtp |
|
|
33 |
LIBCURL_CONFIGURE_WITH= libcurl |
34 |
LIBCURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl |
35 |
LIBLUA_CONFIGURE_WITH= lua |
36 |
LIBLUA_USE= lua=yes |
37 |
LIBLUA_CFLAGS= -I${LUA_INCDIR} |
38 |
LIBLUA_LDFLAGS= -L${LUA_LIBDIR} |
39 |
MYSQL_CONFIGURE_WITH= mysql=${LOCALBASE}/bin/mysql_config |
40 |
MYSQL_USE= mysql=yes |
28 |
|
41 |
|
29 |
.if ${PORT_OPTIONS:MLIBESMTP} |
42 |
PORTDOCS= * |
30 |
CONFIGURE_ARGS+= --enable-smtp |
|
|
31 |
LIB_DEPENDS+= esmtp.7:${PORTSDIR}/mail/libesmtp |
32 |
.else |
33 |
CONFIGURE_ARGS+= --disable-smtp |
34 |
.endif |
35 |
|
43 |
|
36 |
.if ${PORT_OPTIONS:MLIBCURL} |
44 |
PLIST_FILES= bin/linknx |
37 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl |
|
|
38 |
CONFIGURE_ARGS+= --with-libcurl=${LOCALBASE} |
39 |
.else |
40 |
CONFIGURE_ARGS+= --without-libcurl |
41 |
.endif |
42 |
|
45 |
|
43 |
USE_RC_SUBR= ${PORTNAME} |
46 |
USE_RC_SUBR= ${PORTNAME} |
44 |
|
47 |
|
45 |
.include <bsd.port.post.mk> |
48 |
post-patch: |
|
|
49 |
${REINPLACE_CMD} "s/LUAPC=lua/LUAPC=lua-${LUA_VER}/" ${WRKSRC}/configure.ac |
50 |
|
51 |
.include <bsd.port.mk> |