Tue Jun 8 10:12:55 2021 UTC ()
Add a websockets option, defaulting to on.
bump PKGREVISION
ok gdt@
(bouyer)
diff -r1.22 -r1.23 pkgsrc/net/mosquitto/Makefile
diff -r0 -r1.1 pkgsrc/net/mosquitto/options.mk
--- pkgsrc/net/mosquitto/Makefile 2021/04/06 13:16:22 1.22
+++ pkgsrc/net/mosquitto/Makefile 2021/06/08 10:12:55 1.23
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.22 2021/04/06 13:16:22 gdt Exp $
+# $NetBSD: Makefile,v 1.23 2021/06/08 10:12:55 bouyer Exp $
DISTNAME= mosquitto-2.0.10
CATEGORIES= net
MASTER_SITES= https://mosquitto.org/files/source/
+PKGREVISION= 1
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= https://mosquitto.org/
@@ -53,6 +54,7 @@
TEST_TARGET= test
.include "../../devel/cunit/buildlink3.mk"
+.include "options.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/uthash/buildlink3.mk"
# ?needed
# $NetBSD: options.mk,v 1.1 2021/06/08 10:12:55 bouyer Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mosquitto
PKG_SUPPORTED_OPTIONS= websockets
PKG_SUGGESTED_OPTIONS= websockets
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mwebsockets)
CMAKE_ARGS+= -DWITH_WEBSOCKETS=yes
.include "../../www/libwebsockets/buildlink3.mk"
.else
CMAKE_ARGS+= -DWITH_WEBSOCKETS=no
.endif