Lines 14-19
LICENSE= BSD3CLAUSE
Link Here
|
14 |
LIB_DEPENDS= libcares.so:${PORTSDIR}/dns/c-ares |
14 |
LIB_DEPENDS= libcares.so:${PORTSDIR}/dns/c-ares |
15 |
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt |
15 |
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt |
16 |
|
16 |
|
|
|
17 |
OPTIONS_DEFAULT=PYTHON |
18 |
OPTIONS_DEFINE= PYTHON |
19 |
|
20 |
PYTHON_DESC= Build python driver |
21 |
|
17 |
USES= cmake |
22 |
USES= cmake |
18 |
USE_PYTHON= 2 |
23 |
USE_PYTHON= 2 |
19 |
NOCONFIGURE= yes |
24 |
NOCONFIGURE= yes |
Lines 24-39
USE_LDCONFIG= yes
Link Here
|
24 |
|
29 |
|
25 |
USERS= nobody |
30 |
USERS= nobody |
26 |
|
31 |
|
27 |
PLIST_SUB= PYTHON_VER=${PYTHON_VER} |
32 |
.include <bsd.port.options.mk> |
|
|
33 |
|
34 |
.if ${PORT_OPTIONS:MPYTHON} |
35 |
PLIST_SUB= PYTHON_VER=${PYTHON_VER} NOPYTHON="" |
36 |
.else |
37 |
PLIST_SUB= NOPYTHON="@comment " |
38 |
.endif |
28 |
|
39 |
|
29 |
post-patch: |
40 |
post-patch: |
30 |
${MV} ${WRKSRC}/mosquitto.conf ${WRKSRC}/mosquitto.conf.example |
41 |
${MV} ${WRKSRC}/mosquitto.conf ${WRKSRC}/mosquitto.conf.example |
31 |
|
42 |
|
32 |
post-install: |
43 |
post-install: |
|
|
44 |
.if ${PORT_OPTIONS:MPYTHON} |
33 |
cd ${WRKSRC}/lib/python ; \ |
45 |
cd ${WRKSRC}/lib/python ; \ |
34 |
${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py build ; \ |
46 |
${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py build ; \ |
35 |
${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py install --prefix=${PREFIX} --root=${STAGEDIR} |
47 |
${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py install --prefix=${PREFIX} --root=${STAGEDIR} |
36 |
|
48 |
.endif |
37 |
# Compress Man Pages |
49 |
# Compress Man Pages |
38 |
${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man8/mosquitto.8 |
50 |
${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man8/mosquitto.8 |
39 |
${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man7/mqtt.7 |
51 |
${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man7/mqtt.7 |