Bug 255093 - audio/pulseaudio: optionalize X11
Summary: audio/pulseaudio: optionalize X11
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
Keywords: patch
Depends on:
Reported: 2021-04-15 15:46 UTC by Evgeniy Khramtsov
Modified: 2021-04-20 22:56 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (desktop)

patch (3.55 KB, patch)
2021-04-15 15:46 UTC, Evgeniy Khramtsov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Khramtsov 2021-04-15 15:46:20 UTC
Created attachment 224137 [details]

Make audio/pulseaudio dependency on X11 optional.

Pulseaudio is needed to build www/firefox pulse-rust backend, which can be used with pipewire-pulse instead of pulseaudio.

I run locally-patched ports tree that ensures that I am not building *any* X11-related dependencies (e.g. even libGL and libx{11,xcb}), and building X11 just for the build time dependency breaks my X11-less setup.

This might also be desirable for headless environments, e.g. servers using pulseaudio for some reason. I wouldn't mind if this will never be merged.

Consolekit has a hard dependency on X11 by using checks in configure files and including and then using Xlib.h, so don't depend on this lib if X11 is off.

No functional change for the default build.