Skip to content

Commit

Permalink
libcanberra: move pulseaudio to a variant
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Oct 11, 2024
1 parent 5d68993 commit 83619ce
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions audio/libcanberra/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup active_variants 1.1

name libcanberra
version 0.30
revision 10
revision 11

categories audio devel
license LGPL-2.1+
Expand All @@ -27,8 +27,7 @@ depends_build-append \
path:bin/pkg-config:pkgconfig

depends_lib-append \
port:libvorbis \
port:pulseaudio
port:libvorbis

depends_run-append \
port:sound-theme-freedesktop
Expand All @@ -48,6 +47,7 @@ configure.args-append \
--disable-lynx \
--disable-null \
--disable-oss \
--disable-pulse \
--disable-silent-rules \
--disable-tdb \
--disable-udev
Expand Down Expand Up @@ -86,8 +86,21 @@ variant x11 conflicts quartz {
port:xorg-libX11
}

variant pulse description {Enable pulseaudio support} {
depends_lib-append \
port:pulseaudio
configure.args-delete \
--disable-pulse
}

default_variants +gtk2 +gtk3

if {${os.platform} ne "darwin" || ${os.major} > 9} {
# pulseaudio does not build on 10.5 at the moment.
default_variants-append \
+pulse
}

if {[variant_isset gtk2] || [variant_isset gtk3]} {
if {![variant_isset quartz]} {
default_variants +x11
Expand Down

0 comments on commit 83619ce

Please sign in to comment.