| @@ -1,59 +1,60 @@ | | | @@ -1,59 +1,60 @@ |
1 | # $NetBSD: Makefile,v 1.16 2021/01/30 07:31:30 mef Exp $ | | 1 | # $NetBSD: Makefile,v 1.17 2021/01/30 10:17:55 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= mosquitto-2.0.6 | | 3 | DISTNAME= mosquitto-2.0.6 |
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 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt |
| | | 13 | |
12 | USE_LANGUAGES+= c c++ | | 14 | USE_LANGUAGES+= c c++ |
13 | # Upstream documents that "unix" should use make, but Mac cmake. | | 15 | # Upstream documents that "unix" should use make, but Mac cmake. |
14 | # After asking and receiving no guidance, choose to always use cmake. | | 16 | # After asking and receiving no guidance, choose to always use cmake. |
15 | # https://github.com/eclipse/mosquitto/issues/1041 | | 17 | # https://github.com/eclipse/mosquitto/issues/1041 |
16 | USE_CMAKE= yes | | 18 | USE_CMAKE= yes |
17 | USE_TOOLS+= gmake | | 19 | USE_TOOLS+= gmake |
18 | | | 20 | |
19 | LDFLAGS.SunOS+= -lsocket -lnsl | | 21 | LDFLAGS.SunOS+= -lsocket -lnsl |
20 | CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples | | 22 | CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples |
21 | | | 23 | |
22 | MOSQUITTO_USER= mosquitto | | 24 | MOSQUITTO_USER= mosquitto |
23 | MOSQUITTO_GROUP= mosquitto | | 25 | MOSQUITTO_GROUP= mosquitto |
24 | | | 26 | |
25 | PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP} | | 27 | PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP} |
26 | PKG_GROUPS= ${MOSQUITTO_GROUP} | | 28 | PKG_GROUPS= ${MOSQUITTO_GROUP} |
27 | | | 29 | |
28 | CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \ | | 30 | CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \ |
29 | ${PKG_SYSCONFDIR}/mosquitto.conf | | 31 | ${PKG_SYSCONFDIR}/mosquitto.conf |
30 | | | 32 | |
31 | SUBST_CLASSES+= paths | | 33 | SUBST_CLASSES+= paths |
32 | SUBST_STAGE.paths= post-configure | | 34 | SUBST_STAGE.paths= post-configure |
33 | SUBST_MESSAGE.paths= Substituting paths | | 35 | SUBST_MESSAGE.paths= Substituting paths |
34 | SUBST_FILES.paths= mosquitto.conf | | 36 | SUBST_FILES.paths= mosquitto.conf |
35 | SUBST_VARS.paths= SSLCERTS VARBASE | | 37 | SUBST_VARS.paths= SSLCERTS VARBASE |
36 | | | 38 | |
37 | RCD_SCRIPTS= mosquitto | | 39 | RCD_SCRIPTS= mosquitto |
38 | SMF_METHODS= mosquitto | | 40 | SMF_METHODS= mosquitto |
39 | FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER} | | 41 | FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER} |
40 | FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP} | | 42 | FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP} |
41 | FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | | 43 | FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} |
42 | | | 44 | |
43 | # mosquitto's build system is very troubled, and the tests do not | | 45 | # mosquitto's build system is very troubled, and the tests do not |
44 | # currently work. | | 46 | # currently work. |
45 | # https://github.com/eclipse/mosquitto/issues/1242 | | 47 | # https://github.com/eclipse/mosquitto/issues/1242 |
46 | # https://github.com/eclipse/mosquitto/issues/1330 | | 48 | # https://github.com/eclipse/mosquitto/issues/1330 |
47 | # | | 49 | # |
48 | # \todo invoke "gmake test" in tests/ subdir instead of at top level | | 50 | # \todo invoke "gmake test" in tests/ subdir instead of at top level |
49 | # \todo pass in CPPFLAGS/LDFLAGS to test invocation | | 51 | # \todo pass in CPPFLAGS/LDFLAGS to test invocation |
50 | TEST_TARGET= test | | 52 | TEST_TARGET= test |
51 | .include "../../devel/cunit/buildlink3.mk" | | 53 | .include "../../devel/cunit/buildlink3.mk" |
52 | | | 54 | |
53 | .include "../../devel/libuuid/buildlink3.mk" | | 55 | .include "../../devel/libuuid/buildlink3.mk" |
54 | .include "../../devel/uthash/buildlink3.mk" | | 56 | .include "../../devel/uthash/buildlink3.mk" |
55 | # ?needed | | 57 | # ?needed |
56 | .include "../../net/libcares/buildlink3.mk" | | 58 | .include "../../net/libcares/buildlink3.mk" |
57 | .include "../../security/openssl/buildlink3.mk" | | 59 | .include "../../security/openssl/buildlink3.mk" |
58 | .include "../../textproc/libxslt/buildlink3.mk" | | | |
59 | .include "../../mk/bsd.pkg.mk" | | 60 | .include "../../mk/bsd.pkg.mk" |