summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2020-08-17 06:58:02 +0000
committerriastradh <riastradh@pkgsrc.org>2020-08-17 06:58:02 +0000
commita3909cfd9dd193f7ac23f17a057f0ea4f50f90a3 (patch)
tree904e72247df1ab1d09509208bd20dd30f9dc60ee
parent95a9e43655271444e7804f82ab26a5518c101832 (diff)
downloadpkgsrc-a3909cfd9dd193f7ac23f17a057f0ea4f50f90a3.tar.gz
security/tor-browser: Make dbus an option.
-rw-r--r--security/tor-browser/Makefile3
-rw-r--r--security/tor-browser/options.mk13
2 files changed, 11 insertions, 5 deletions
diff --git a/security/tor-browser/Makefile b/security/tor-browser/Makefile
index 3aaecf6481e..b3d475492c3 100644
--- a/security/tor-browser/Makefile
+++ b/security/tor-browser/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2020/07/29 07:46:37 wiz Exp $
+# $NetBSD: Makefile,v 1.71 2020/08/17 06:58:02 riastradh Exp $
DISTNAME= src-firefox-tor-browser-68.11.0esr-9.5-1-build1
PKGNAME= tor-browser-9.5.3
@@ -128,5 +128,4 @@ post-install:
${DESTDIR}${PREFIX}/lib/tor-browser/browser/fonts
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
-.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/tor-browser/options.mk b/security/tor-browser/options.mk
index a216e3b3a3f..8d3f44450a7 100644
--- a/security/tor-browser/options.mk
+++ b/security/tor-browser/options.mk
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.6 2020/06/07 13:06:00 wiz Exp $
+# $NetBSD: options.mk,v 1.7 2020/08/17 06:58:02 riastradh Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.tor-browser
-PKG_SUPPORTED_OPTIONS+= alsa debug debug-info mozilla-jemalloc pulseaudio
+PKG_SUPPORTED_OPTIONS+= alsa dbus debug debug-info mozilla-jemalloc pulseaudio
-PKG_SUGGESTED_OPTIONS.Linux+= alsa mozilla-jemalloc
+PKG_SUGGESTED_OPTIONS.Linux+= alsa dbus mozilla-jemalloc
.include "../../mk/bsd.fast.prefs.mk"
@@ -20,6 +20,13 @@ CONFIGURE_ARGS+= --enable-alsa
CONFIGURE_ARGS+= --disable-alsa
.endif
+.if !empty(PKG_OPTIONS:Mdbus)
+CONFIGURE_ARGS+= --enable-dbus
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-dbus
+.endif
+
.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
CONFIGURE_ARGS+= --enable-jemalloc
.else