Skip to content

Commit

Permalink
xmms2: another go with fixing opportunistic linking
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 9, 2024
1 parent 976522a commit 2b19d95
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions audio/xmms2/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
PortSystem 1.0
PortGroup github 1.0
PortGroup legacysupport 1.1
PortGroup openssl 1.0
PortGroup waf 1.0

# strndup
Expand All @@ -11,7 +12,7 @@ legacysupport.newest_darwin_requires_legacy 10
name xmms2
github.setup xmms2 xmms2-devel 0.9.5
github.tarball_from releases
revision 1
revision 2
categories audio
# Mostly LGPL, some plugins and clients are GPL
license LGPL-2.1+ GPL-2+ GPL-2
Expand All @@ -30,18 +31,23 @@ checksums rmd160 ec8beae90b455e6af7311fb37c2382705e8843e9 \
depends_build-append path:bin/pkg-config:pkgconfig

set ffmpeg_ver 6
depends_lib-append port:faad2 \
depends_lib-append port:curl \
port:faad2 \
port:ffmpeg${ffmpeg_ver} \
port:fftw-3-single \
port:flac \
port:fluidsynth \
port:gettext-runtime \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:libao \
port:libcdio-paranoia \
port:libdiscid \
port:libmad \
port:libmms \
port:libmodplug \
port:libmpcdec \
port:libofa \
port:libogg \
port:libsamplerate \
port:libshout2 \
port:libsndfile \
Expand Down Expand Up @@ -83,7 +89,7 @@ compiler.blacklist-append *gcc-4.0 *gcc-4.2
options optionals

options disabled_plugins
default disabled_plugins {jack pulse}
default disabled_plugins {daap jack pulse samba}

# not supported
configure.post_args-delete --nocache
Expand All @@ -109,11 +115,20 @@ variant cpp description {C++ development support} {
optionals-append xmmsclient++ xmmsclient++-glib
}

variant mdns description {MDNS backend support using avahi} {
# These two introduce a dependency on avahi.
variant avahi description {MDNS and DAAP using avahi} {
depends_lib-append port:avahi

disabled_plugins-delete daap
optionals-append mdns
}

variant samba description {Enable smbclient support} {
depends_lib-append port:samba3

disabled_plugins-delete samba
}

variant perl description {Perl development support} {
depends_lib-append port:perl5.34 port:p5.34-pod-parser
configure.args-append --with-perl-binary ${prefix}/bin/perl5.34
Expand Down

0 comments on commit 2b19d95

Please sign in to comment.