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
This commit is contained in:
Guido Falsi 2022-07-18 19:35:08 +02:00
parent 14a09586b4
commit 1035e88e5d
3 changed files with 15 additions and 12 deletions

View file

@ -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

View file

@ -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

View file

@ -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)