git: 724d62baf8fd - main - Revert "multimedia/arcan: drop option for expired audio/espeak"

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Fri, 15 Jul 2022 14:37:19 UTC
The branch main has been updated by se:

URL: https://cgit.FreeBSD.org/ports/commit/?id=724d62baf8fd304ff99872f44b285075f659646d

commit 724d62baf8fd304ff99872f44b285075f659646d
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-07-15 13:44:12 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-07-15 14:36:22 +0000

    Revert "multimedia/arcan: drop option for expired audio/espeak"
    
    Bump PORTREVISION and update dependency on espeak to espeak-ng.
    
    This reverts commit b57678ad2e5278b6c5eba29e7602e681528400fd.
---
 multimedia/arcan/Makefile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/multimedia/arcan/Makefile b/multimedia/arcan/Makefile
index b06a185bf1c2..e8c11df9e8ea 100644
--- a/multimedia/arcan/Makefile
+++ b/multimedia/arcan/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	arcan
 DISTVERSION=	0.6.1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	multimedia
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -30,10 +30,11 @@ CMAKE_ARGS=	-DDISTR_TAG:STRING="portbld" \
 LDFLAGS+=	-Wl,--as-needed # bzip2, ffmpeg, librt, libutil, lzma, zlib
 LDFLAGS_i386=	-Wl,-z,notext
 
-OPTIONS_DEFINE=	FFMPEG LUAJIT MANPAGES SDL SUID TESSERACT UVC VLC VNC WAYLAND
-OPTIONS_DEFAULT=FFMPEG LUAJIT MANPAGES SDL SUID TESSERACT UVC VLC VNC WAYLAND
+OPTIONS_DEFINE=	ESPEAK FFMPEG LUAJIT MANPAGES SDL SUID TESSERACT UVC VLC VNC WAYLAND
+OPTIONS_DEFAULT=ESPEAK FFMPEG LUAJIT MANPAGES SDL SUID TESSERACT UVC VLC VNC WAYLAND
 OPTIONS_SUB=	yes
 
+ESPEAK_LIB_DEPENDS=	libespeak-ng.so:audio/espeak-ng
 FFMPEG_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
 
 MANPAGES_USE=		RUBY=yes
@@ -84,12 +85,14 @@ post-patch:
 		${WRKSRC}/frameserver/terminal/default/cli_builtin.c \
 		${WRKSRC}/platform/posix/paths.c \
 		${WRKSRC}/shmif/arcan_shmif_debugif.c
-	@${REINPLACE_CMD} -i.noespeak '/find.*Espeak/d' \
-		${WRKSRC}/frameserver/decode/default/CMakeLists.txt
 
 pre-configure-MANPAGES-on:
 	@${RUBY} -C ${WRKSRC:H}/doc -Ku docgen.rb mangen 2>/dev/null
 
+post-patch-ESPEAK-off:
+	@${REINPLACE_CMD} -i.noespeak '/find.*Espeak/d' \
+		${WRKSRC}/frameserver/decode/default/CMakeLists.txt
+
 post-patch-FFMPEG-off:
 	@${REINPLACE_CMD} -i.noffmpeg '/pkg.*FFMPEG/d' \
 		${WRKSRC}/a12/CMakeLists.txt \