| @@ -1,65 +1,65 @@ | | | @@ -1,65 +1,65 @@ |
1 | # $NetBSD: Makefile,v 1.30 2023/06/06 12:42:05 riastradh Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2023/08/16 14:46:32 gdt Exp $ |
2 | | | 2 | |
3 | DISTNAME= mosquitto-2.0.15 | | 3 | DISTNAME= mosquitto-2.0.16 |
4 | CATEGORIES= net | | 4 | CATEGORIES= net |
5 | MASTER_SITES= https://mosquitto.org/files/source/ | | 5 | MASTER_SITES= https://mosquitto.org/files/source/ |
6 | | | 6 | |
7 | MAINTAINER= gdt@NetBSD.org | | 7 | MAINTAINER= gdt@NetBSD.org |
8 | HOMEPAGE= https://mosquitto.org/ | | 8 | HOMEPAGE= https://mosquitto.org/ |
9 | COMMENT= Open Source MQTT broker | | 9 | COMMENT= Open Source MQTT broker |
10 | LICENSE= epl-v1.0 | | 10 | LICENSE= epl-v1.0 |
11 | | | 11 | |
12 | TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | | 12 | TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt |
13 | | | 13 | |
14 | USE_LANGUAGES+= c c++ | | 14 | USE_LANGUAGES+= c c++ |
15 | # Upstream documents that "unix" should use make, but Mac cmake. | | 15 | # Upstream documents that "unix" should use make, but Mac cmake. |
16 | # After asking and receiving no guidance, choose to always use cmake. | | 16 | # After asking and receiving no guidance, choose to always use cmake. |
17 | # https://github.com/eclipse/mosquitto/issues/1041 | | 17 | # https://github.com/eclipse/mosquitto/issues/1041 |
18 | USE_CMAKE= yes | | 18 | USE_CMAKE= yes |
19 | USE_TOOLS+= gmake | | 19 | USE_TOOLS+= gmake |
20 | | | 20 | |
21 | LDFLAGS.SunOS+= -lsocket -lnsl | | 21 | LDFLAGS.SunOS+= -lsocket -lnsl |
22 | CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples | | 22 | CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples |
23 | CMAKE_ARGS+= -DWITH_PLUGINS=NO | | 23 | CMAKE_ARGS+= -DWITH_PLUGINS=NO |
24 | | | 24 | |
25 | MOSQUITTO_USER= mosquitto | | 25 | MOSQUITTO_USER= mosquitto |
26 | MOSQUITTO_GROUP= mosquitto | | 26 | MOSQUITTO_GROUP= mosquitto |
27 | | | 27 | |
28 | PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP} | | 28 | PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP} |
29 | PKG_GROUPS= ${MOSQUITTO_GROUP} | | 29 | PKG_GROUPS= ${MOSQUITTO_GROUP} |
30 | | | 30 | |
31 | CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \ | | 31 | CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \ |
32 | ${PKG_SYSCONFDIR}/mosquitto.conf | | 32 | ${PKG_SYSCONFDIR}/mosquitto.conf |
33 | | | 33 | |
34 | SUBST_CLASSES+= paths | | 34 | SUBST_CLASSES+= paths |
35 | SUBST_STAGE.paths= post-configure | | 35 | SUBST_STAGE.paths= post-configure |
36 | SUBST_MESSAGE.paths= Substituting paths | | 36 | SUBST_MESSAGE.paths= Substituting paths |
37 | SUBST_FILES.paths= mosquitto.conf | | 37 | SUBST_FILES.paths= mosquitto.conf |
38 | SUBST_VARS.paths= SSLCERTS VARBASE | | 38 | SUBST_VARS.paths= SSLCERTS VARBASE |
39 | | | 39 | |
40 | RCD_SCRIPTS= mosquitto | | 40 | RCD_SCRIPTS= mosquitto |
41 | SMF_METHODS= mosquitto | | 41 | SMF_METHODS= mosquitto |
42 | FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER} | | 42 | FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER} |
43 | FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP} | | 43 | FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP} |
44 | FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | | 44 | FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} |
45 | FILES_SUBST+= VARBASE=${VARBASE} | | 45 | FILES_SUBST+= VARBASE=${VARBASE} |
46 | | | 46 | |
47 | PTHREAD_AUTO_VARS= yes | | 47 | PTHREAD_AUTO_VARS= yes |
48 | .include "../../mk/pthread.buildlink3.mk" | | 48 | .include "../../mk/pthread.buildlink3.mk" |
49 | | | 49 | |
50 | # mosquitto's build system is very troubled, and the tests do not | | 50 | # mosquitto's build system is very troubled, and the tests do not |
51 | # currently work. | | 51 | # currently work. |
52 | # https://github.com/eclipse/mosquitto/issues/1242 | | 52 | # https://github.com/eclipse/mosquitto/issues/1242 |
53 | # https://github.com/eclipse/mosquitto/issues/1330 | | 53 | # https://github.com/eclipse/mosquitto/issues/1330 |
54 | # | | 54 | # |
55 | # \todo invoke "gmake test" in tests/ subdir instead of at top level | | 55 | # \todo invoke "gmake test" in tests/ subdir instead of at top level |
56 | # \todo pass in CPPFLAGS/LDFLAGS to test invocation | | 56 | # \todo pass in CPPFLAGS/LDFLAGS to test invocation |
57 | TEST_TARGET= test | | 57 | TEST_TARGET= test |
58 | .include "../../devel/cunit/buildlink3.mk" | | 58 | .include "../../devel/cunit/buildlink3.mk" |
59 | | | 59 | |
60 | .include "options.mk" | | 60 | .include "options.mk" |
61 | .include "../../devel/libuuid/buildlink3.mk" | | 61 | .include "../../devel/libuuid/buildlink3.mk" |
62 | .include "../../devel/uthash/buildlink3.mk" | | 62 | .include "../../devel/uthash/buildlink3.mk" |
63 | .include "../../net/libcares/buildlink3.mk" | | 63 | .include "../../net/libcares/buildlink3.mk" |
64 | .include "../../security/openssl/buildlink3.mk" | | 64 | .include "../../security/openssl/buildlink3.mk" |
65 | .include "../../mk/bsd.pkg.mk" | | 65 | .include "../../mk/bsd.pkg.mk" |