Sat Jan 30 10:17:55 2021 UTC ()
mosquitto: libxslt is a build dependency

xsltproc is used for generating the man pages.


(wiz)
diff -r1.16 -r1.17 pkgsrc/net/mosquitto/Makefile

cvs diff -r1.16 -r1.17 pkgsrc/net/mosquitto/Makefile (switch to unified diff)

--- pkgsrc/net/mosquitto/Makefile 2021/01/30 07:31:30 1.16
+++ pkgsrc/net/mosquitto/Makefile 2021/01/30 10:17:55 1.17
@@ -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
3DISTNAME= mosquitto-2.0.6 3DISTNAME= mosquitto-2.0.6
4CATEGORIES= net 4CATEGORIES= net
5MASTER_SITES= https://mosquitto.org/files/source/ 5MASTER_SITES= https://mosquitto.org/files/source/
6 6
7MAINTAINER= gdt@NetBSD.org 7MAINTAINER= gdt@NetBSD.org
8HOMEPAGE= https://mosquitto.org/ 8HOMEPAGE= https://mosquitto.org/
9COMMENT= Open Source MQTT broker 9COMMENT= Open Source MQTT broker
10LICENSE= epl-v1.0 10LICENSE= epl-v1.0
11 11
 12BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
 13
12USE_LANGUAGES+= c c++ 14USE_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
16USE_CMAKE= yes 18USE_CMAKE= yes
17USE_TOOLS+= gmake 19USE_TOOLS+= gmake
18 20
19LDFLAGS.SunOS+= -lsocket -lnsl 21LDFLAGS.SunOS+= -lsocket -lnsl
20CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples 22CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples
21 23
22MOSQUITTO_USER= mosquitto 24MOSQUITTO_USER= mosquitto
23MOSQUITTO_GROUP= mosquitto 25MOSQUITTO_GROUP= mosquitto
24 26
25PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP} 27PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP}
26PKG_GROUPS= ${MOSQUITTO_GROUP} 28PKG_GROUPS= ${MOSQUITTO_GROUP}
27 29
28CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \ 30CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \
29 ${PKG_SYSCONFDIR}/mosquitto.conf 31 ${PKG_SYSCONFDIR}/mosquitto.conf
30 32
31SUBST_CLASSES+= paths 33SUBST_CLASSES+= paths
32SUBST_STAGE.paths= post-configure 34SUBST_STAGE.paths= post-configure
33SUBST_MESSAGE.paths= Substituting paths 35SUBST_MESSAGE.paths= Substituting paths
34SUBST_FILES.paths= mosquitto.conf 36SUBST_FILES.paths= mosquitto.conf
35SUBST_VARS.paths= SSLCERTS VARBASE 37SUBST_VARS.paths= SSLCERTS VARBASE
36 38
37RCD_SCRIPTS= mosquitto 39RCD_SCRIPTS= mosquitto
38SMF_METHODS= mosquitto 40SMF_METHODS= mosquitto
39FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER} 41FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER}
40FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP} 42FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP}
41FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} 43FILES_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
50TEST_TARGET= test 52TEST_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"