git: 1035e88e5d63 - main - audio/asterisk-espeak: Update to 5.0-rc1, fix.

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Mon, 18 Jul 2022 17:37:17 UTC
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1035e88e5d63579637ee1d5706361d5489e2f755

commit 1035e88e5d63579637ee1d5706361d5489e2f755
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2022-07-18 17:35:08 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2022-07-18 17:35:08 +0000

    audio/asterisk-espeak: Update to 5.0-rc1, fix.
    
    - 5.0-rc1 is required to properly work with espeak-ng
    - Use proper flavors helpers. Using ${FLAVOR} in the variables makes
      the @all special flavor fail
---
 audio/asterisk-espeak/Makefile             | 13 ++++++++-----
 audio/asterisk-espeak/distinfo             |  6 +++---
 audio/asterisk-espeak/files/patch-Makefile |  8 ++++----
 3 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/audio/asterisk-espeak/Makefile b/audio/asterisk-espeak/Makefile
index f1e1eaa70e2f..90f06e6aae96 100644
--- a/audio/asterisk-espeak/Makefile
+++ b/audio/asterisk-espeak/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	espeak
-PORTVERSION=	4.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	4
+DISTVERSION=	5.0-rc1
 CATEGORIES=	audio
 
 MAINTAINER=	madpilot@FreeBSD.org
@@ -15,9 +14,13 @@ LIB_DEPENDS=	libespeak-ng.so:audio/espeak-ng \
 FLAVORS=	asterisk18 asterisk16
 FLAVOR?=	${FLAVORS:[1]}
 
-PKGNAMEPREFIX=		${FLAVOR}-
-BUILD_DEPENDS=		asterisk:net/${FLAVOR}
-RUN_DEPENDS=		asterisk:net/${FLAVOR}
+asterisk16_PKGNAMEPREFIX=	asterisk16-
+asterisk16_BUILD_DEPENDS=	asterisk:net/asterisk16
+asterisk16_RUN_DEPENDS=		asterisk:net/asterisk16
+
+asterisk18_PKGNAMEPREFIX=       asterisk18-
+asterisk18_BUILD_DEPENDS=       asterisk:net/asterisk18
+asterisk18_RUN_DEPENDS=         asterisk:net/asterisk18
 
 USES=		compiler:c11 gmake localbase
 INSTALL_TARGET=	install samples
diff --git a/audio/asterisk-espeak/distinfo b/audio/asterisk-espeak/distinfo
index f1769e752ced..138c8df6e03e 100644
--- a/audio/asterisk-espeak/distinfo
+++ b/audio/asterisk-espeak/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1503328653
-SHA256 (zaf-Asterisk-eSpeak-v4.0_GH0.tar.gz) = 29b76b8483e398bde9b3639ebb7d89e86c5ff1bac339e6c5bea7e6b9518dd369
-SIZE (zaf-Asterisk-eSpeak-v4.0_GH0.tar.gz) = 13739
+TIMESTAMP = 1658164283
+SHA256 (zaf-Asterisk-eSpeak-v5.0-rc1_GH0.tar.gz) = 2fb3d5f9f9d112383126feb5e6f2ef90d952d166f3a394e6563188b552d1ee55
+SIZE (zaf-Asterisk-eSpeak-v5.0-rc1_GH0.tar.gz) = 13405
diff --git a/audio/asterisk-espeak/files/patch-Makefile b/audio/asterisk-espeak/files/patch-Makefile
index d707f3a69fc9..a0a00cb17e80 100644
--- a/audio/asterisk-espeak/files/patch-Makefile
+++ b/audio/asterisk-espeak/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig	2017-01-08 00:20:52 UTC
+--- Makefile.orig	2018-08-01 16:53:07 UTC
 +++ Makefile
 @@ -6,31 +6,18 @@
  # the GNU General Public License Version 2. See the COPYING file
@@ -23,8 +23,8 @@
 -DEBUG:=-g
 +CC?=gcc
  
--LIBS+=-lespeak -lsamplerate
-+LIBS+=$(LDFLAGS) -lespeak -lsamplerate
+-LIBS+=-lespeak-ng -lsamplerate
++LIBS+=$(LDFLAGS) -lespeak-ng -lsamplerate
  CFLAGS+=-pipe -fPIC -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DAST_MODULE_SELF_SYM=__internal_app_espeak_self
  
  all: app_espeak.so
@@ -37,7 +37,7 @@
  
  app_espeak.o: app_espeak.c
  	$(CC) $(CFLAGS) $(DEBUG) $(OPTIMIZE) -c -o $@ $*.c
-@@ -44,20 +31,7 @@ clean:
+@@ -44,20 +31,7 @@ install: all
  install: all
  	$(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR)
  	$(INSTALL) -m 755 app_espeak.so $(DESTDIR)$(MODULES_DIR)