[Bug 277754] audio/sox: fixes to make options work properly

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 Mar 2024 02:04:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277754

--- Comment #2 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
(In reply to Dan Nelson from comment #1)

This method has a maximum sequence of the following arguments
--disable-mp3 --with-lame --enable-mp3 --with-mad --enable-mp3 --with-twolame
--enable-mp3
It then takes advantage of the fact that the last --{enable,disable}-mp3 is
adopted from among them.

If that method is not adopted, the following part would be needed

.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLAME} || ${PORT_OPTIONS:MMAD} || ${PORT_OPTIONS:MTWOLAME}
CONFIGURE_ARGS+= --enable-mp3
.else
CONFIGURE_ARGS+= --disable-mp3
.endif

These are better if the preferred method is adopted.

-- 
You are receiving this mail because:
You are the assignee for the bug.