Skip to content

Commit

Permalink
audio/asterisk-espeak: Update to 5.0-rc1, fix.
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
madpilot78 committed Jul 18, 2022
1 parent 14a0958 commit 1035e88
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
13 changes: 8 additions & 5 deletions audio/asterisk-espeak/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
PORTNAME= espeak
PORTVERSION= 4.0
DISTVERSIONPREFIX= v
PORTREVISION= 4
DISTVERSION= 5.0-rc1
CATEGORIES= audio

MAINTAINER= madpilot@FreeBSD.org
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions audio/asterisk-espeak/distinfo
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions audio/asterisk-espeak/files/patch-Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 1035e88

Please sign in to comment.