From nobody Fri Jul 15 14:37:22 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lkv8L3TF0z4WnkT; Fri, 15 Jul 2022 14:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lkv8L2pMDz424y; Fri, 15 Jul 2022 14:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657895842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z/YwzBeZLW/ihHqCa4o8d9jXYzSi6d/O31UtNRjd65c=; b=BvzxFxXBRICX/TxBzJA0UWz6dBurFxMbisBf041AAJI0a1mEbxg0j2eoO1BoQXE1B3CauH mZzBA3atTuOZi+sx0QzszOTfkgSEzRmubu1Ib1yDPs6ehJv0NbFrKcpjdn0KwUYS38nZOJ xXNHFWFhcHv16Ye7UxYguSZpEvOm05ac5SEpwPQcBOs6jOD7p7PfEL7L5UQ1R2I7N/EbRU jeDRrnIQZwlxAKjvVCr5JtWvps/VLxdSycYdRiAcWKiOn+32r2qUaAmTEwoX9LW9aiIOth DceYndcSiMgRkSv7ZrW2llm4ayLkWmNF0j5kosHYyueuQi6nPI5LbMSxE77AQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lkv8L1wZ5zld2; Fri, 15 Jul 2022 14:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26FEbMLq075623; Fri, 15 Jul 2022 14:37:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26FEbMJI075622; Fri, 15 Jul 2022 14:37:22 GMT (envelope-from git) Date: Fri, 15 Jul 2022 14:37:22 GMT Message-Id: <202207151437.26FEbMJI075622@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Stefan=20E=C3=9Fer?= Subject: git: d5d485cba903 - main - audio/asterisk-espeak: Revert removal as part of commit c46b556a1b8 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d5d485cba9031ffa4cc9660c6fc476e2c929c73e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657895842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z/YwzBeZLW/ihHqCa4o8d9jXYzSi6d/O31UtNRjd65c=; b=iJc4FRCbR7qsQnfFiTHWLsrOolp6vfmDJnurToqhMdQzs/tsOTS5bqOlxOkA7yR59b54lN PfCv0vzW0VC/fqHXAK4iUcZtJRaVqSONdD+DpqMc+HYnLFtRiJ0DI6mLDcSvGrtLygWYnR cHwu5L1xAN6CG8UAmH9zSm5AYxYPwIwPabagjhRmIt2ZdFywS9bjb9PTn7spbhTalumdVO h+FcTWHkpxseulc0IaaJRakXURdc5oa76gukz0lyMjaMM2rL1IQkNfqf95X666q91jE3dr Wlx/c/I5K/pcRmQ5cWyiu2Ee3DW+kINNFfbG0D5x3RsvHD6RC+xAGE7diHZn0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657895842; a=rsa-sha256; cv=none; b=yJbTovn2vEP/XtCR3x+IVl2vxFMTpSkTWO76PpZ5uOLn97X2gCbAfL+M0SQdL3ALmyqphs nZY/KVZySrifOpx8pZW1zmy83hf5GTqYPDuUWYbuY3Ix0yaIvtn4AFTczGchbDosB2V9P8 H2YLp5oH512FDCR/uOhqLnbSqWc+4upAJqm3XQkiBGA3RJwkFvSAy+TrtciYSrAQlp+x9H SmASnM2kMWE9SNw9iWSTDXTFAKc9CNJ6rSmwElS9R9rEqIqA1q7+scGWw8QFA8iwtNcpYc XcRihd9pPg9T9UKYmuB0NrEaN/aroQVm1DPL8krYdiCN9kadt5+EFJYuZCkeww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=d5d485cba9031ffa4cc9660c6fc476e2c929c73e commit d5d485cba9031ffa4cc9660c6fc476e2c929c73e Author: Stefan Eßer AuthorDate: 2022-07-15 13:58:03 +0000 Commit: Stefan Eßer CommitDate: 2022-07-15 14:36:22 +0000 audio/asterisk-espeak: Revert removal as part of commit c46b556a1b8 The espeak port has been updated and is no longer deprecated. --- audio/Makefile | 1 + audio/asterisk-espeak/Makefile | 53 ++++++++++++++++++++++++++ audio/asterisk-espeak/distinfo | 3 ++ audio/asterisk-espeak/files/patch-Makefile | 60 ++++++++++++++++++++++++++++++ audio/asterisk-espeak/pkg-descr | 6 +++ audio/asterisk-espeak/pkg-plist | 2 + 6 files changed, 125 insertions(+) diff --git a/audio/Makefile b/audio/Makefile index 97e8c4d8320f..755d704792d6 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -35,6 +35,7 @@ SUBDIR += artyfx-lv2 SUBDIR += asmix SUBDIR += asmixer + SUBDIR += asterisk-espeak SUBDIR += asterisk-flite SUBDIR += asunder SUBDIR += atunes diff --git a/audio/asterisk-espeak/Makefile b/audio/asterisk-espeak/Makefile new file mode 100644 index 000000000000..882098252219 --- /dev/null +++ b/audio/asterisk-espeak/Makefile @@ -0,0 +1,53 @@ +PORTNAME= espeak +PORTVERSION= 4.0 +DISTVERSIONPREFIX= v +PORTREVISION= 3 +CATEGORIES= audio + +MAINTAINER= madpilot@FreeBSD.org +COMMENT= Espeak dialplan application for Asterisk + +LICENSE= GPLv2 + +DEPRECATED= Depends on deprecated audio/espeaak +EXPIRATION_DATE=2022-06-30 + +LIB_DEPENDS= libespeak.so:audio/espeak \ + libsamplerate.so:audio/libsamplerate + +FLAVORS= asterisk18 asterisk16 +FLAVOR?= ${FLAVORS:[1]} + +asterisk16_PKGNAMEPREFIX= asterisk16- +asterisk16_CONFLICTS_INSTALL= asterisk13-espeak asterisk18-espeak +asterisk16_BUILD_DEPENDS= asterisk:net/asterisk16 +asterisk16_RUN_DEPENDS= asterisk:net/asterisk16 + +asterisk18_PKGNAMEPREFIX= asterisk18- +asterisk18_CONFLICTS_INSTALL= asterisk13-espeak asterisk16-espeak +asterisk18_BUILD_DEPENDS= asterisk:net/asterisk18 +asterisk18_RUN_DEPENDS= asterisk:net/asterisk18 + +USES= compiler:c11 gmake localbase +INSTALL_TARGET= install samples + +CONFLICTS_INSTALL= asterisk*-espeak # etc/asterisk/espeak.conf.sample + +USE_GITHUB= yes +GH_ACCOUNT= zaf +GH_PROJECT= Asterisk-eSpeak + +.include + +.if ${CHOSEN_COMPILER_TYPE} == clang +CFLAGS+= -fblocks +.endif + +post-patch: + @${REINPLACE_CMD} -e '/ASTERISK_REGISTER_FILE/d' \ + ${WRKSRC}/app_espeak.c + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_espeak.so + +.include diff --git a/audio/asterisk-espeak/distinfo b/audio/asterisk-espeak/distinfo new file mode 100644 index 000000000000..f1769e752ced --- /dev/null +++ b/audio/asterisk-espeak/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1503328653 +SHA256 (zaf-Asterisk-eSpeak-v4.0_GH0.tar.gz) = 29b76b8483e398bde9b3639ebb7d89e86c5ff1bac339e6c5bea7e6b9518dd369 +SIZE (zaf-Asterisk-eSpeak-v4.0_GH0.tar.gz) = 13739 diff --git a/audio/asterisk-espeak/files/patch-Makefile b/audio/asterisk-espeak/files/patch-Makefile new file mode 100644 index 000000000000..d707f3a69fc9 --- /dev/null +++ b/audio/asterisk-espeak/files/patch-Makefile @@ -0,0 +1,60 @@ +--- Makefile.orig 2017-01-08 00:20:52 UTC ++++ Makefile +@@ -6,31 +6,18 @@ + # the GNU General Public License Version 2. See the COPYING file + # at the top of the source tree. + +-ASTLIBDIR:=$(shell awk '/moddir/{print $$3}' /etc/asterisk/asterisk.conf 2> /dev/null) +-ifeq ($(strip $(ASTLIBDIR)),) +- MODULES_DIR:=$(INSTALL_PREFIX)/usr/lib/asterisk/modules +-else +- MODULES_DIR:=$(INSTALL_PREFIX)$(ASTLIBDIR) +-endif +-ASTETCDIR:=$(INSTALL_PREFIX)/etc/asterisk ++MODULES_DIR=$(PREFIX)/lib/asterisk/modules ++ASTETCDIR=$(PREFIX)/etc/asterisk + SAMPLENAME:=espeak.conf.sample +-CONFNAME:=$(basename $(SAMPLENAME)) ++CONFNAME:=$(SAMPLENAME) + + INSTALL:=install +-CC:=gcc +-OPTIMIZE:=-O2 +-DEBUG:=-g ++CC?=gcc + +-LIBS+=-lespeak -lsamplerate ++LIBS+=$(LDFLAGS) -lespeak -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 +- @echo " +-------- app_espeak Build Complete --------+" +- @echo " + app_espeak has successfully been built, +" +- @echo " + and can be installed by running: +" +- @echo " + +" +- @echo " + make install +" +- @echo " +-------------------------------------------+" + + app_espeak.o: app_espeak.c + $(CC) $(CFLAGS) $(DEBUG) $(OPTIMIZE) -c -o $@ $*.c +@@ -44,20 +31,7 @@ clean: + install: all + $(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR) + $(INSTALL) -m 755 app_espeak.so $(DESTDIR)$(MODULES_DIR) +- @echo " +---- app_espeak Installation Complete -----+" +- @echo " + +" +- @echo " + app_espeak has successfully been installed+" +- @echo " + If you would like to install the sample +" +- @echo " + configuration file run: +" +- @echo " + +" +- @echo " + make samples +" +- @echo " +-------------------------------------------+" + + samples: + @mkdir -p $(DESTDIR)$(ASTETCDIR) +- @if [ -f $(DESTDIR)$(ASTETCDIR)/$(CONFNAME) ]; then \ +- echo "Backing up previous config file as $(CONFNAME).old";\ +- mv -f $(DESTDIR)$(ASTETCDIR)/$(CONFNAME) $(DESTDIR)$(ASTETCDIR)/$(CONFNAME).old ; \ +- fi ; + $(INSTALL) -m 644 $(SAMPLENAME) $(DESTDIR)$(ASTETCDIR)/$(CONFNAME) +- @echo " ------- app_esepak confing Installed --------" diff --git a/audio/asterisk-espeak/pkg-descr b/audio/asterisk-espeak/pkg-descr new file mode 100644 index 000000000000..f49fac719a89 --- /dev/null +++ b/audio/asterisk-espeak/pkg-descr @@ -0,0 +1,6 @@ +eSpeak For Asterisk provides the "Espeak" dialplan application, +which allows you to use the Espeak speech synthesizer with Asterisk. +This module invokes the Espeak TTS engine locally, and uses it to +render text to speech. + +WWW: https://zaf.github.io/Asterisk-eSpeak/ diff --git a/audio/asterisk-espeak/pkg-plist b/audio/asterisk-espeak/pkg-plist new file mode 100644 index 000000000000..564e0e7c9cd5 --- /dev/null +++ b/audio/asterisk-espeak/pkg-plist @@ -0,0 +1,2 @@ +@sample etc/asterisk/espeak.conf.sample +lib/asterisk/modules/app_espeak.so