| @@ -1,24 +1,26 @@ | | | @@ -1,24 +1,26 @@ |
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 | |
| @@ -45,15 +47,14 @@ FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCO | | | @@ -45,15 +47,14 @@ FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCO |
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" |