freebsd-ports/audio/alsa-plugins/Makefile
Jan Beich 06dbf1df62 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
2024-02-02 14:44:56 +01:00

52 lines
1.5 KiB
Makefile

PORTNAME= alsa-plugins
PORTVERSION= 1.2.7.1
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= https://www.alsa-project.org/files/pub/plugins/
MAINTAINER= ports@FreeBSD.org
COMMENT= ALSA compatibility library plugins
WWW= https://www.alsa-project.org/
LICENSE= LGPL21+
LIB_DEPENDS= libasound.so:audio/alsa-lib
USES= alias libtool:keepla localbase pkgconfig tar:bzip2
USE_LDCONFIG= ${PREFIX}/lib/alsa-lib
GNU_CONFIGURE= yes
MAKE_ARGS+= RM="${RM}"
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${.CURDIR}/../alsa-lib/files
OPTIONS_DEFINE= FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX
OPTIONS_DEFAULT= FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX
OPTIONS_SUB= yes
FFMPEG_SUBPACKAGES= ffmpeg
LIB_DEPENDS.ffmpeg= ${LIB_DEPENDS} libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_ENABLE= libav
JACK_SUBPACKAGES= jack
LIB_DEPENDS.jack= ${LIB_DEPENDS} libjack.so:audio/jack
JACK_CONFIGURE_ENABLE= jack
PULSEAUDIO_SUBPACKAGES= pulseaudio
LIB_DEPENDS.pulseaudio= ${LIB_DEPENDS} libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio
SAMPLERATE_SUBPACKAGES= samplerate
LIB_DEPENDS.samplerate= ${LIB_DEPENDS} libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_ENABLE= samplerate
SPEEX_SUBPACKAGES= speex
LIB_DEPENDS.speex= ${LIB_DEPENDS} libspeexdsp.so:audio/speexdsp
SPEEX_CONFIGURE_ON= --with-speex=lib
SPEEX_CONFIGURE_OFF= --without-speex
post-install:
# sanitize links
cd ${STAGEDIR}${PREFIX}/etc/alsa/conf.d && for i in [0-9][0-9]-*.conf ; do \
${LN} -sf ../../../share/alsa/alsa.conf.d/$$i . ; done
.include <bsd.port.mk>