git: 6f07c5e3e9a5 - main - audio/lame: add option to depend on libsndfile

From: Alexander Leidinger <netchild_at_FreeBSD.org>
Date: Sun, 27 Mar 2022 12:05:35 UTC
The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6f07c5e3e9a5dc55d32821744d58264e815f6c10

commit 6f07c5e3e9a5dc55d32821744d58264e815f6c10
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2022-03-27 12:03:47 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2022-03-27 12:03:47 +0000

    audio/lame: add option to depend on libsndfile
    
    Defaults to off.
    PR:             251985
---
 audio/lame/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/audio/lame/Makefile b/audio/lame/Makefile
index 3c49c401b284..28e5ab88ca6a 100644
--- a/audio/lame/Makefile
+++ b/audio/lame/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	lame
 PORTVERSION=	3.100
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	audio
 MASTER_SITES=	SF/${PORTNAME:tl}/${PORTNAME:tl}/3.100
 
@@ -20,7 +20,12 @@ CPE_VENDOR=	lame_project
 
 DOC_FILES=	API LICENSE README TODO USAGE
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS SNDFILE
+OPTIONS_DEFAULT=DOCS
+
+SNDFILE_CONFIGURE_ON=	--with-fileio=sndfile
+SNDFILE_CONFIGURE_OFF=	--with-fileio=lame
+SNDFILE_LIB_DEPENDS=	libsndfile.so:audio/libsndfile
 
 .include <bsd.port.pre.mk>