summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-07-01 21:11:38 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-07-01 21:36:26 +0000
commit22c1ebe48e0bba14b8e77495052025bda32665b3 (patch)
treeae13b644676f604e0989673478d668297ca0e32a
parentx11/waybar: add @nopulse flavor (aka waybar-nopulse) (diff)
x11/wf-shell: add @nopulse flavor (aka waybar-nopulse)
pulseaudio is a heavy dependency e.g., $ pkg install wayfire wf-shell wcm celluloid firefox $ pkg install wf-shell-nopulse $ pkg autoremove Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 14 packages: Installed packages to be REMOVED: consolekit2: 1.2.4_3 fftw3: 3.3.10_2 fftw3-float: 3.3.10_2 flac: 1.3.4 libgcrypt: 1.9.4_1 libgpg-error: 1.45 libltdl: 2.4.7 libsndfile: 1.0.31_1 libsoxr: 0.1.3_3 libxslt: 1.1.35_3 orc: 0.4.31 pulseaudio: 14.2_4 speexdsp: 1.2.1 webrtc-audio-processing0: 0.3.1_2 Number of packages to be removed: 14 The operation will free 33 MiB.
-rw-r--r--x11/wf-shell/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11/wf-shell/Makefile b/x11/wf-shell/Makefile
index 9838f5d15056..eee56c0483db 100644
--- a/x11/wf-shell/Makefile
+++ b/x11/wf-shell/Makefile
@@ -19,6 +19,11 @@ LIB_DEPENDS= libinotify.so:devel/libinotify \
libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell
RUN_DEPENDS= wayland-logout:x11/wayland-logout
+FLAVORS= default nopulse
+default_CONFLICTS_INSTALL= ${PORTNAME}-nopulse
+nopulse_CONFLICTS_INSTALL= ${PORTNAME}
+nopulse_PKGNAMESUFFIX= -nopulse
+
USES= compiler:c++17-lang gnome meson pkgconfig
USE_GITHUB= yes
USE_GNOME= gtkmm30
@@ -29,6 +34,9 @@ DATADIR= ${PREFIX}/share/wayfire
OPTIONS_DEFINE= PULSEAUDIO
OPTIONS_DEFAULT=PULSEAUDIO
+.if ${FLAVOR:U} == nopulse
+OPTIONS_EXCLUDE=PULSEAUDIO
+.endif
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_MESON_ENABLED= pulse