diff options
author | bouyer <bouyer@pkgsrc.org> | 2021-06-08 10:12:55 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2021-06-08 10:12:55 +0000 |
commit | d8be424d1db482d0ecd24312a99e57a894304509 (patch) | |
tree | 40afd711e7f3e56889176ab208c12cdf1e4a5864 /net | |
parent | aa15ffb482e420c9a32b07092b74a4084807b2cb (diff) | |
download | pkgsrc-d8be424d1db482d0ecd24312a99e57a894304509.tar.gz |
Add a websockets option, defaulting to on.
bump PKGREVISION
ok gdt@
Diffstat (limited to 'net')
-rw-r--r-- | net/mosquitto/Makefile | 4 | ||||
-rw-r--r-- | net/mosquitto/options.mk | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile index db100c253ae..ba10593a788 100644 --- a/net/mosquitto/Makefile +++ b/net/mosquitto/Makefile @@ -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 @@ FILES_SUBST+= VARBASE=${VARBASE} TEST_TARGET= test .include "../../devel/cunit/buildlink3.mk" +.include "options.mk" .include "../../devel/libuuid/buildlink3.mk" .include "../../devel/uthash/buildlink3.mk" # ?needed diff --git a/net/mosquitto/options.mk b/net/mosquitto/options.mk new file mode 100644 index 00000000000..8ec2dab90a7 --- /dev/null +++ b/net/mosquitto/options.mk @@ -0,0 +1,14 @@ +# $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 |