pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mosquitto Add a websockets option, defaulting to on.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8aff38389e29
branches:  trunk
changeset: 454287:8aff38389e29
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Tue Jun 08 10:12:55 2021 +0000

description:
Add a websockets option, defaulting to on.
bump PKGREVISION
ok gdt@

diffstat:

 net/mosquitto/Makefile   |   4 +++-
 net/mosquitto/options.mk |  14 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 972761efa5f0 -r 8aff38389e29 net/mosquitto/Makefile
--- a/net/mosquitto/Makefile    Tue Jun 08 10:10:02 2021 +0000
+++ b/net/mosquitto/Makefile    Tue Jun 08 10:12:55 2021 +0000
@@ -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@localhost
 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
diff -r 972761efa5f0 -r 8aff38389e29 net/mosquitto/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mosquitto/options.mk  Tue Jun 08 10:12:55 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index