pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

audio/eflite: Add Flite version 0.0.0.86



Module Name:	pkgsrc-wip
Committed By:	adr <adr%sdf.org@localhost>
Pushed By:	adr
Date:		Sun Feb 25 17:16:01 2024 +0000
Changeset:	976ffa10e2cc11acade755d091f440f93d78a883

Modified Files:
	Makefile
Added Files:
	eflite/COMMIT_MSG
	eflite/DESCR
	eflite/Makefile
	eflite/PLIST
	eflite/distinfo
	eflite/patches/patch-Makefile.in
	eflite/patches/patch-fs.c
	eflite/patches/patch-soccon.c
	eflite/patches/patch-sockopen.c

Log Message:
audio/eflite: Add Flite version 0.0.0.86

Eflite is a speech server which allows screen readers like Emacspeak
or Yasrs to interact with the speech sinthesizer Flite.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=976ffa10e2cc11acade755d091f440f93d78a883

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                         |  1 +
 eflite/COMMIT_MSG                |  3 +++
 eflite/DESCR                     |  2 ++
 eflite/Makefile                  | 28 ++++++++++++++++++++++++++++
 eflite/PLIST                     |  2 ++
 eflite/distinfo                  |  9 +++++++++
 eflite/patches/patch-Makefile.in | 36 ++++++++++++++++++++++++++++++++++++
 eflite/patches/patch-fs.c        | 15 +++++++++++++++
 eflite/patches/patch-soccon.c    | 16 ++++++++++++++++
 eflite/patches/patch-sockopen.c  | 16 ++++++++++++++++
 10 files changed, 128 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6041413a95..becb368b1f 100644
--- a/Makefile
+++ b/Makefile
@@ -762,6 +762,7 @@ SUBDIR+=	efgallery
 SUBDIR+=	efibootmgr
 SUBDIR+=	efivar
 SUBDIR+=	efl
+SUBDIR+=	eflite
 SUBDIR+=	efltk
 SUBDIR+=	eic
 SUBDIR+=	eiskaltdcpp
diff --git a/eflite/COMMIT_MSG b/eflite/COMMIT_MSG
new file mode 100644
index 0000000000..06dc626d71
--- /dev/null
+++ b/eflite/COMMIT_MSG
@@ -0,0 +1,3 @@
+audio/eflite: Add Flite version 0.0.0.86
+
+Packaged in wip by adr
diff --git a/eflite/DESCR b/eflite/DESCR
new file mode 100644
index 0000000000..b1a7c4b849
--- /dev/null
+++ b/eflite/DESCR
@@ -0,0 +1,2 @@
+Eflite is a speech server which allows screen readers like Emacspeak
+or Yasrs to interact with the speech sinthesizer Flite.
diff --git a/eflite/Makefile b/eflite/Makefile
new file mode 100644
index 0000000000..47dcf30986
--- /dev/null
+++ b/eflite/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+COMMITS=	86
+DISTNAME=	eflite-0.0.0.${COMMITS}
+CATEGORIES=	audio
+MASTER_SITES=	${MASTER_SITE_GITHUB:=mgorse/}
+GITHUB_TAG=	21b950b64c268626351f98625fa1344b37881f1a
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/mgorse/eflite
+COMMENT=	Speech server for screen readers using Festival Lite
+LICENSE=	gnu-gpl-v2
+
+USE_LANGUAGES=		c
+USE_TOOLS=		gmake autoconf automake autoreconf
+GNU_CONFIGURE=		yes
+
+CONFIGURE_ARGS+=	CFLAGS="${CFLAGS} -DDO_WAVE_CANCEL"
+CONFIGURE_ARGS+=	LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS+=	DESTDIR="${DESTDIR}"
+
+BUILD_TARGET=		eflite
+
+pre-configure:
+	set -e; cd ${WRKSRC} && autoreconf -fi
+
+.include "../../audio/flite/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/eflite/PLIST b/eflite/PLIST
new file mode 100644
index 0000000000..eba70f2cb5
--- /dev/null
+++ b/eflite/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/eflite
diff --git a/eflite/distinfo b/eflite/distinfo
new file mode 100644
index 0000000000..d36cce0298
--- /dev/null
+++ b/eflite/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+BLAKE2s (eflite-0.0.0.86-21b950b64c268626351f98625fa1344b37881f1a.tar.gz) = 2e755246d7528c943ee5a7f1c946ac6577e2a82fb12ca62879058b8f69bcd7f3
+SHA512 (eflite-0.0.0.86-21b950b64c268626351f98625fa1344b37881f1a.tar.gz) = 1e8e272aebdce1723dd83c50f1f7c62f83f93491fc19548ec4ae40faccdcc60d7e3d0ee66c6df7922f110ae3bdca0a9b27dde6792589af25bf8cc5995698e222
+Size (eflite-0.0.0.86-21b950b64c268626351f98625fa1344b37881f1a.tar.gz) = 32390 bytes
+SHA1 (patch-Makefile.in) = f77c612548471c3465860afc9568426ee5faaca8
+SHA1 (patch-fs.c) = 21dc050709e9038b74159a4d614dac4b462eaf06
+SHA1 (patch-soccon.c) = 33074b1d582738919e7df5a735e204f2aefdfb90
+SHA1 (patch-sockopen.c) = 750cb4431307c182692a0a59e105c5be8e32e539
diff --git a/eflite/patches/patch-Makefile.in b/eflite/patches/patch-Makefile.in
new file mode 100644
index 0000000000..70fb5d524b
--- /dev/null
+++ b/eflite/patches/patch-Makefile.in
@@ -0,0 +1,36 @@
+$NetBSD$
+
+Add DEFS to CFLAGS (for string.h)
+Use DESTDIR in install target
+
+--- Makefile.in.orig	2024-01-14 23:55:06.000000000 +0000
++++ Makefile.in
+@@ -4,7 +4,7 @@
+ # Do not hand edit.
+ 
+ CC       = @CC@
+-CFLAGS   = @CFLAGS@
++CFLAGS   = @CFLAGS@ @DEFS@
+ CPPFLAGS = @CPPFLAGS@
+ DEFS     = @DEFS@
+ LDFLAGS   = @LDFLAGS@
+@@ -18,8 +18,8 @@ FL_LEX   = @FL_LEX@
+ exec_prefix   = @exec_prefix@
+ prefix        = @prefix@
+ EXEEXT	      = @EXEEXT@
+-INSTALLBINDIR = @bindir@
+-INSTALLLIBDIR = @libdir@
++INSTALLBINDIR = $(DESTDIR)/@bindir@
++INSTALLLIBDIR = $(DESTDIR)@libdir@
+ 
+ #CFLAGS+= -DDEBUG=2
+ #CFLAGS+= -DDO_WAVE_CANCEL
+@@ -52,7 +52,7 @@ ifneq (,$(wildcard *.o))
+ endif
+ 
+ install: eflite
+-	mkdir -p $(exec_prefix)/bin && install -c -m 0755 $< $(exec_prefix)/bin
++	mkdir -p $(INSTALLBINDIR) && install -c -m 0755 $< $(INSTALLBINDIR)
+ 
+ test: eflite
+ 	./eflite -f eflite_test.txt
diff --git a/eflite/patches/patch-fs.c b/eflite/patches/patch-fs.c
new file mode 100644
index 0000000000..bbef19d842
--- /dev/null
+++ b/eflite/patches/patch-fs.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Remove useless operator (typo)
+
+--- fs.c.orig	2024-02-25 17:04:42.792873829 +0000
++++ fs.c
+@@ -902,7 +902,7 @@ static int s_clear(synth_t *s)
+   {
+     wave_thread_cancel = 1;
+ #ifdef DO_WAVE_CANCEL
+--   pthread_cancel(wave_thread);
++    pthread_cancel(wave_thread);
+ #endif
+     pthread_cond_signal(&wave_condition); // necessary because we inhibit cancellation while waiting
+   }
diff --git a/eflite/patches/patch-soccon.c b/eflite/patches/patch-soccon.c
new file mode 100644
index 0000000000..a08d9d8dd3
--- /dev/null
+++ b/eflite/patches/patch-soccon.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add string.h inclusion when needed
+
+--- soccon.c.orig	2024-01-14 23:55:06.000000000 +0000
++++ soccon.c
+@@ -10,6 +10,9 @@
+ #include <arpa/inet.h>
+ #include <sys/un.h>
+ #include <unistd.h>
++#ifdef HAVE_STRING_H
++# include <string.h>
++#endif
+ 
+ int sockconnect_unix(const char *fname)
+ {
diff --git a/eflite/patches/patch-sockopen.c b/eflite/patches/patch-sockopen.c
new file mode 100644
index 0000000000..f249f7c70d
--- /dev/null
+++ b/eflite/patches/patch-sockopen.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add string.h inclusion when needed
+
+--- sockopen.c.orig	2024-01-14 23:55:06.000000000 +0000
++++ sockopen.c
+@@ -11,6 +11,9 @@
+ #include <sys/stat.h>
+ #include <sys/un.h>
+ #include <syslog.h>
++#ifdef HAVE_STRING_H
++# include <string.h>
++#endif
+ 
+ int sockopen_unix(const char *fname)
+ {


Home | Main Index | Thread Index | Old Index