mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
eb16cd1e4c
PR: 231047 Submitted by: Iblis Lin <iblis@hs.ntnu.edu.tw> Approved by: joe@thrallingpenguin.com (maintainer)
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# Created by: Joseph Benden <joe@thrallingpenguin.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mosquitto
|
|
PORTVERSION= 1.5.3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://mosquitto.org/files/source/
|
|
|
|
MAINTAINER= joe@thrallingpenguin.com
|
|
COMMENT= Open-Source MQTT Broker
|
|
|
|
LICENSE= EPL
|
|
|
|
LIB_DEPENDS= libcares.so:dns/c-ares \
|
|
libuuid.so:misc/e2fsprogs-libuuid
|
|
BUILD_DEPENDS= xsltproc:textproc/libxslt
|
|
|
|
USES= cmake ssl
|
|
NOCONFIGURE= yes
|
|
USE_RC_SUBR= mosquitto
|
|
USE_LDCONFIG= yes
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
USERS= nobody
|
|
|
|
OPTIONS_DEFINE= WS
|
|
|
|
CMAKE_ARGS+= -DCMAKE_LIBDATADIR="${PREFIX}/libdata"
|
|
|
|
WS_DESC= MQTT over Websockets support
|
|
WS_LIB_DEPENDS= libwebsockets.so:net/libwebsockets
|
|
WS_CMAKE_ON= -DWITH_WEBSOCKETS=ON
|
|
|
|
post-patch:
|
|
# do not run ldconfig in stage dir
|
|
@${REINPLACE_CMD} -e '/ldconfig/d' ${WRKSRC}/src/CMakeLists.txt \
|
|
${WRKSRC}/lib/CMakeLists.txt ${WRKSRC}/lib/cpp/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/CMakeLists.txt
|
|
|
|
post-install:
|
|
# Adjust configuration files
|
|
${MV} ${STAGEDIR}${ETCDIR}/mosquitto.conf ${STAGEDIR}${ETCDIR}/mosquitto.conf.sample
|
|
${MV} ${STAGEDIR}${ETCDIR}/pwfile.example ${STAGEDIR}${ETCDIR}/pwfile.sample
|
|
${MV} ${STAGEDIR}${ETCDIR}/pskfile.example ${STAGEDIR}${ETCDIR}/pskfile.sample
|
|
${MV} ${STAGEDIR}${ETCDIR}/aclfile.example ${STAGEDIR}${ETCDIR}/aclfile.sample
|
|
|
|
.include <bsd.port.mk>
|