1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

audio/alsa-plugins: convert options to subpackages

Reduce heavy dependencies for consumers e.g.,
- chromium -> pipewire -> alsa-plugins -> pulseaudio
- wine -> alsa-plugins -> pulseaudio

Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D43667
This commit is contained in:
Jan Beich 2024-01-30 17:18:28 +01:00
parent 077152a79a
commit 06dbf1df62
8 changed files with 82 additions and 49 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= alsa-plugins
PORTVERSION= 1.2.7.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= https://www.alsa-project.org/files/pub/plugins/
@ -20,22 +20,27 @@ INSTALL_TARGET= install-strip
CPPFLAGS+= -I${.CURDIR}/../alsa-lib/files
OPTIONS_DEFINE= FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX
OPTIONS_DEFAULT= PULSEAUDIO
OPTIONS_DEFAULT= FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX
OPTIONS_SUB= yes
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_SUBPACKAGES= ffmpeg
LIB_DEPENDS.ffmpeg= ${LIB_DEPENDS} libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_ENABLE= libav
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_SUBPACKAGES= jack
LIB_DEPENDS.jack= ${LIB_DEPENDS} libjack.so:audio/jack
JACK_CONFIGURE_ENABLE= jack
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_SUBPACKAGES= pulseaudio
LIB_DEPENDS.pulseaudio= ${LIB_DEPENDS} libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
SAMPLERATE_SUBPACKAGES= samplerate
LIB_DEPENDS.samplerate= ${LIB_DEPENDS} libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_ENABLE= samplerate
SPEEX_LIB_DEPENDS= libspeexdsp.so:audio/speexdsp
SPEEX_SUBPACKAGES= speex
LIB_DEPENDS.speex= ${LIB_DEPENDS} libspeexdsp.so:audio/speexdsp
SPEEX_CONFIGURE_ON= --with-speex=lib
SPEEX_CONFIGURE_OFF= --without-speex

View File

@ -0,0 +1,3 @@
The Advanced Linux Sound Architecture (ALSA) plugins
This package provides FFmpeg-based plugins.

View File

@ -0,0 +1,3 @@
The Advanced Linux Sound Architecture (ALSA) plugins
This package provides jack plugin.

View File

@ -0,0 +1,3 @@
The Advanced Linux Sound Architecture (ALSA) plugins
This package provides pulseaudio plugin.

View File

@ -0,0 +1,3 @@
The Advanced Linux Sound Architecture (ALSA) plugins
This package provides samplerate plugin.

View File

@ -0,0 +1,3 @@
The Advanced Linux Sound Architecture (ALSA) plugins
This package provides speex plugin.

View File

@ -0,0 +1,13 @@
[
{ type: upgrade
maximum_version: "1.2.7.1_2"
message: <<EOD
Plugins with extra dependencies moved into subpackages:
- alsa-plugins-ffmpeg
- alsa-plugins-jack
- alsa-plugins-pulseaudio
- alsa-plugins-samplerate
- alsa-plugins-speex
EOD
}
]

View File

@ -1,65 +1,65 @@
%%FFMPEG%%etc/alsa/conf.d/10-rate-lav.conf
%%SAMPLERATE%%etc/alsa/conf.d/10-samplerate.conf
%%SPEEX%%etc/alsa/conf.d/10-speexrate.conf
%%JACK%%etc/alsa/conf.d/50-jack.conf
%%FFMPEG%%etc/alsa/conf.d/60-a52-encoder.conf
%%FFMPEG%%@@ffmpeg@@etc/alsa/conf.d/10-rate-lav.conf
%%SAMPLERATE%%@@samplerate@@etc/alsa/conf.d/10-samplerate.conf
%%SPEEX%%@@speex@@etc/alsa/conf.d/10-speexrate.conf
%%JACK%%@@jack@@etc/alsa/conf.d/50-jack.conf
%%FFMPEG%%@@ffmpeg@@etc/alsa/conf.d/60-a52-encoder.conf
@comment etc/alsa/conf.d/50-arcam-av-ctl.conf
etc/alsa/conf.d/50-oss.conf
%%PULSEAUDIO%%etc/alsa/conf.d/50-pulseaudio.conf
%%SPEEX%%etc/alsa/conf.d/60-speex.conf
%%PULSEAUDIO%%@@pulseaudio@@etc/alsa/conf.d/50-pulseaudio.conf
%%SPEEX%%@@speex@@etc/alsa/conf.d/60-speex.conf
@comment etc/alsa/conf.d/60-upmix.conf
@comment etc/alsa/conf.d/60-vdownmix.conf
@comment etc/alsa/conf.d/98-usb-stream.conf
@comment etc/alsa/conf.d/99-pulseaudio-default.conf.example
%%PULSEAUDIO%%lib/alsa-lib/libasound_module_conf_pulse.la
%%PULSEAUDIO%%lib/alsa-lib/libasound_module_conf_pulse.so
%%PULSEAUDIO%%@@pulseaudio@@lib/alsa-lib/libasound_module_conf_pulse.la
%%PULSEAUDIO%%@@pulseaudio@@lib/alsa-lib/libasound_module_conf_pulse.so
lib/alsa-lib/libasound_module_ctl_arcam_av.la
lib/alsa-lib/libasound_module_ctl_arcam_av.so
lib/alsa-lib/libasound_module_ctl_oss.la
lib/alsa-lib/libasound_module_ctl_oss.so
%%PULSEAUDIO%%lib/alsa-lib/libasound_module_ctl_pulse.la
%%PULSEAUDIO%%lib/alsa-lib/libasound_module_ctl_pulse.so
%%FFMPEG%%lib/alsa-lib/libasound_module_pcm_a52.la
%%FFMPEG%%lib/alsa-lib/libasound_module_pcm_a52.so
%%JACK%%lib/alsa-lib/libasound_module_pcm_jack.la
%%JACK%%lib/alsa-lib/libasound_module_pcm_jack.so
%%PULSEAUDIO%%@@pulseaudio@@lib/alsa-lib/libasound_module_ctl_pulse.la
%%PULSEAUDIO%%@@pulseaudio@@lib/alsa-lib/libasound_module_ctl_pulse.so
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_pcm_a52.la
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_pcm_a52.so
%%JACK%%@@jack@@lib/alsa-lib/libasound_module_pcm_jack.la
%%JACK%%@@jack@@lib/alsa-lib/libasound_module_pcm_jack.so
lib/alsa-lib/libasound_module_pcm_oss.la
lib/alsa-lib/libasound_module_pcm_oss.so
%%PULSEAUDIO%%lib/alsa-lib/libasound_module_pcm_pulse.la
%%PULSEAUDIO%%lib/alsa-lib/libasound_module_pcm_pulse.so
%%SPEEX%%lib/alsa-lib/libasound_module_pcm_speex.la
%%SPEEX%%lib/alsa-lib/libasound_module_pcm_speex.so
%%PULSEAUDIO%%@@pulseaudio@@lib/alsa-lib/libasound_module_pcm_pulse.la
%%PULSEAUDIO%%@@pulseaudio@@lib/alsa-lib/libasound_module_pcm_pulse.so
%%SPEEX%%@@speex@@lib/alsa-lib/libasound_module_pcm_speex.la
%%SPEEX%%@@speex@@lib/alsa-lib/libasound_module_pcm_speex.so
lib/alsa-lib/libasound_module_pcm_upmix.la
lib/alsa-lib/libasound_module_pcm_upmix.so
lib/alsa-lib/libasound_module_pcm_usb_stream.la
lib/alsa-lib/libasound_module_pcm_usb_stream.so
lib/alsa-lib/libasound_module_pcm_vdownmix.la
lib/alsa-lib/libasound_module_pcm_vdownmix.so
%%FFMPEG%%lib/alsa-lib/libasound_module_rate_lavrate.la
%%FFMPEG%%lib/alsa-lib/libasound_module_rate_lavrate.so
%%FFMPEG%%lib/alsa-lib/libasound_module_rate_lavrate_fast.so
%%FFMPEG%%lib/alsa-lib/libasound_module_rate_lavrate_faster.so
%%FFMPEG%%lib/alsa-lib/libasound_module_rate_lavrate_high.so
%%FFMPEG%%lib/alsa-lib/libasound_module_rate_lavrate_higher.so
%%SAMPLERATE%%lib/alsa-lib/libasound_module_rate_samplerate.la
%%SAMPLERATE%%lib/alsa-lib/libasound_module_rate_samplerate.so
%%SAMPLERATE%%lib/alsa-lib/libasound_module_rate_samplerate_best.so
%%SAMPLERATE%%lib/alsa-lib/libasound_module_rate_samplerate_linear.so
%%SAMPLERATE%%lib/alsa-lib/libasound_module_rate_samplerate_medium.so
%%SAMPLERATE%%lib/alsa-lib/libasound_module_rate_samplerate_order.so
%%SPEEX%%lib/alsa-lib/libasound_module_rate_speexrate.la
%%SPEEX%%lib/alsa-lib/libasound_module_rate_speexrate.so
%%SPEEX%%lib/alsa-lib/libasound_module_rate_speexrate_best.so
%%SPEEX%%lib/alsa-lib/libasound_module_rate_speexrate_medium.so
%%FFMPEG%%share/alsa/alsa.conf.d/10-rate-lav.conf
%%SAMPLERATE%%share/alsa/alsa.conf.d/10-samplerate.conf
%%SPEEX%%share/alsa/alsa.conf.d/10-speexrate.conf
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_rate_lavrate.la
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_rate_lavrate.so
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_rate_lavrate_fast.so
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_rate_lavrate_faster.so
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_rate_lavrate_high.so
%%FFMPEG%%@@ffmpeg@@lib/alsa-lib/libasound_module_rate_lavrate_higher.so
%%SAMPLERATE%%@@samplerate@@lib/alsa-lib/libasound_module_rate_samplerate.la
%%SAMPLERATE%%@@samplerate@@lib/alsa-lib/libasound_module_rate_samplerate.so
%%SAMPLERATE%%@@samplerate@@lib/alsa-lib/libasound_module_rate_samplerate_best.so
%%SAMPLERATE%%@@samplerate@@lib/alsa-lib/libasound_module_rate_samplerate_linear.so
%%SAMPLERATE%%@@samplerate@@lib/alsa-lib/libasound_module_rate_samplerate_medium.so
%%SAMPLERATE%%@@samplerate@@lib/alsa-lib/libasound_module_rate_samplerate_order.so
%%SPEEX%%@@speex@@lib/alsa-lib/libasound_module_rate_speexrate.la
%%SPEEX%%@@speex@@lib/alsa-lib/libasound_module_rate_speexrate.so
%%SPEEX%%@@speex@@lib/alsa-lib/libasound_module_rate_speexrate_best.so
%%SPEEX%%@@speex@@lib/alsa-lib/libasound_module_rate_speexrate_medium.so
%%FFMPEG%%@@ffmpeg@@share/alsa/alsa.conf.d/10-rate-lav.conf
%%SAMPLERATE%%@@samplerate@@share/alsa/alsa.conf.d/10-samplerate.conf
%%SPEEX%%@@speex@@share/alsa/alsa.conf.d/10-speexrate.conf
@comment share/alsa/alsa.conf.d/50-arcam-av-ctl.conf
%%JACK%%share/alsa/alsa.conf.d/50-jack.conf
%%JACK%%@@jack@@share/alsa/alsa.conf.d/50-jack.conf
share/alsa/alsa.conf.d/50-oss.conf
%%PULSEAUDIO%%share/alsa/alsa.conf.d/50-pulseaudio.conf
%%FFMPEG%%share/alsa/alsa.conf.d/60-a52-encoder.conf
%%SPEEX%%share/alsa/alsa.conf.d/60-speex.conf
%%PULSEAUDIO%%@@pulseaudio@@share/alsa/alsa.conf.d/50-pulseaudio.conf
%%FFMPEG%%@@ffmpeg@@share/alsa/alsa.conf.d/60-a52-encoder.conf
%%SPEEX%%@@speex@@share/alsa/alsa.conf.d/60-speex.conf
@comment share/alsa/alsa.conf.d/60-upmix.conf
@comment share/alsa/alsa.conf.d/60-vdownmix.conf
@comment share/alsa/alsa.conf.d/98-usb-stream.conf