aboutsummaryrefslogtreecommitdiff
path: root/net/msoak/Makefile
blob: 35c5d3ae5208140683b4aaaa69f4ca3cd7b79fbf (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
PORTNAME=	msoak
DISTVERSION=	0.8
CATEGORIES=	net

MAINTAINER=	ports@jpmens.net
COMMENT=	Subscribe to different MQTT brokers and topics simultaneously

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libmosquitto.so:net/mosquitto \
		libconfig.so:devel/libconfig

USES=		localbase:ldflags lua:53+
USE_GITHUB=	yes
GH_ACCOUNT=	jpmens

CFLAGS+=	-I${LUA_INCDIR}
LDFLAGS+=	-llua-${LUA_VER} -lmosquitto -lconfig
MAKE_ARGS+=	CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
		BINDIR=${PREFIX}/bin MANDIR=${MANPREFIX}/man

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/msoak
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/example.* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>