pkgsrc-WIP-changes archive

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

mbrola: Import AGPL version of mbrola as wip/mbrola mbrolavox-us1: Import AGPL version of mbrolavox-us1 as wip/mbrolavox-us1



Module Name:	pkgsrc-wip
Committed By:	adr <adr%sdf.org@localhost>
Pushed By:	adr
Date:		Thu Nov 3 18:32:53 2022 +0000
Changeset:	24178b584be1a08dae14e43c2f2a43f20a54a9c3

Modified Files:
	Makefile
Added Files:
	mbrola/DESCR
	mbrola/Makefile
	mbrola/PLIST
	mbrola/distinfo
	mbrola/patches/patch-Makefile
	mbrola/patches/patch-Misc_common.h
	mbrolavox-us1/DESCR
	mbrolavox-us1/Makefile
	mbrolavox-us1/PLIST
	mbrolavox-us1/distinfo

Log Message:
mbrola: Import AGPL version of mbrola as wip/mbrola
mbrolavox-us1: Import AGPL version of mbrolavox-us1 as wip/mbrolavox-us1

The version in pkgsrc of mbrola is an old x86 binary one. This project
is now AGPL licensed and is hosted in git:
https://github.com/numediart/MBROLA/

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

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

diffstat:
 Makefile                           |  2 ++
 mbrola/DESCR                       | 24 ++++++++++++++++++++++++
 mbrola/Makefile                    | 33 +++++++++++++++++++++++++++++++++
 mbrola/PLIST                       |  2 ++
 mbrola/distinfo                    |  7 +++++++
 mbrola/patches/patch-Makefile      | 25 +++++++++++++++++++++++++
 mbrola/patches/patch-Misc_common.h | 29 +++++++++++++++++++++++++++++
 mbrolavox-us1/DESCR                |  1 +
 mbrolavox-us1/Makefile             | 33 +++++++++++++++++++++++++++++++++
 mbrolavox-us1/PLIST                | 10 ++++++++++
 mbrolavox-us1/distinfo             |  5 +++++
 11 files changed, 171 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index e36946097a..9284077d2b 100644
--- a/Makefile
+++ b/Makefile
@@ -2374,6 +2374,8 @@ SUBDIR+=	mawk-tre
 SUBDIR+=	mawk-uxre
 SUBDIR+=	maxima-git
 SUBDIR+=	mbox-importer
+SUBDIR+=	mbrola
+SUBDIR+=	mbrolavox-us1
 SUBDIR+=	mc-mp
 SUBDIR+=	mcats
 SUBDIR+=	mcats-iodbc
diff --git a/mbrola/DESCR b/mbrola/DESCR
new file mode 100644
index 0000000000..cd65207764
--- /dev/null
+++ b/mbrola/DESCR
@@ -0,0 +1,24 @@
+MBROLA is a speech synthesizer based on the concatenation of
+diphones. It takes a list of phonemes as input, together with prosodic
+information (duration of phonemes and a piecewise linear description
+of pitch), and produces speech samples on 16 bits (linear), at the
+sampling frequency of the diphone database.
+
+It is therefore NOT a Text-To-Speech (TTS) synthesizer, since it does
+not accept raw text as input.  In order to obtain a full TTS system,
+you need to use this synthesizer in combination with a text processing
+system that produces phonetic and prosodic commands.
+
+This software is the heart of the MBROLA project, the aim of which
+is to obtain a set of speech synthesizers for as many languages as
+possible, free of use.
+
+As such, it requires an MBROLA language/voice database to run
+properly.  American English, Brazilian Portuguese, Breton, British
+English, Croatian, Dutch, French, German, Greek, Romanian, Spanish and
+Swedish voices are made available. Additional languages and voices
+will be available in the context of the MBROLA project.
+
+Some of these voices are available as mbrolavox-* packages, in the
+NetBSD packages system. For others, please consult the mbrola
+project's home page.
diff --git a/mbrola/Makefile b/mbrola/Makefile
new file mode 100644
index 0000000000..ba2169b3f5
--- /dev/null
+++ b/mbrola/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+DISTNAME=	3.3
+PKGNAME=	mbrola-${DISTNAME}
+CATEGORIES=	audio
+MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
+GITHUB_PROJECT=	MBROLA
+GITHUB_TAG=	refs/tags/3.3
+DIST_SUBDIR=	${GITHUB_PROJECT}
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/numediart/MBROLA/
+COMMENT=	Speech synthesizer
+LICENSE=	gnu-agpl-v3
+
+WRKSRC=	${WRKDIR}/MBROLA-3.3
+
+USE_TOOLS+=	gmake
+BUILD_TARGET=
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CFLAGS+=	-DTARGET_OS_NETBSD
+.endif
+
+INSTALLATION_DIRS=	bin
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/Bin/mbrola ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mbrola/PLIST b/mbrola/PLIST
new file mode 100644
index 0000000000..0952933cc9
--- /dev/null
+++ b/mbrola/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/mbrola
diff --git a/mbrola/distinfo b/mbrola/distinfo
new file mode 100644
index 0000000000..27eb1cbe52
--- /dev/null
+++ b/mbrola/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (MBROLA/3.3.zip) = 17e4caee3b818ac38d38a70a020ebbab69e0c056b7c056b9625bea73fdeebfd1
+SHA512 (MBROLA/3.3.zip) = f64eed78985bc88641fa93f759af6f698786240d82bb05e7bd2a99bed033310233c6b20ed271d16c6105afa31faaac11971ec9db86d92e41f2f28ed345283180
+Size (MBROLA/3.3.zip) = 399480 bytes
+SHA1 (patch-Makefile) = ec85f82be935b5158f2f73f66b2754ab4b276e05
+SHA1 (patch-Misc_common.h) = f7b3d1d9a26560110e32870744ff12dc21929bb6
diff --git a/mbrola/patches/patch-Makefile b/mbrola/patches/patch-Makefile
new file mode 100644
index 0000000000..7a1925481a
--- /dev/null
+++ b/mbrola/patches/patch-Makefile
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Avoid function definition conflicts when using ansi and don't force
+endianess.
+
+--- Makefile.orig	2019-12-17 16:05:14.000000000 +0000
++++ Makefile
+@@ -4,7 +4,7 @@
+ VERSION=3.3
+ 
+ # To test strict C ANSI compliance
+-CC = gcc -ansi -pedantic
++#CC = gcc -ansi -pedantic
+ LIB= -lm
+ 
+ # This allow you to write commands like "make PURE=purify demo1"
+@@ -26,7 +26,7 @@ CCPURE = $(PURE) $(CC)
+ 
+ # If endianess of your machine is not automatically detected in Misc/common.h
+ # you should manually specify here
+-CFLAGS += -DLITTLE_ENDIAN
++#CFLAGS += -DLITTLE_ENDIAN
+ #CFLAGS += -DBIG_ENDIAN
+ 
+ #######################
diff --git a/mbrola/patches/patch-Misc_common.h b/mbrola/patches/patch-Misc_common.h
new file mode 100644
index 0000000000..03ad1f3637
--- /dev/null
+++ b/mbrola/patches/patch-Misc_common.h
@@ -0,0 +1,29 @@
+$NetBSD$
+
+--- Misc/common.h.orig	2019-12-17 16:05:14.000000000 +0000
++++ Misc/common.h
+@@ -70,11 +70,11 @@
+ void swab( const char *from, char *to, int nbytes);
+ #endif
+ 
+-#if defined(__GLIBC__)
++#if defined(__GLIBC__) || defined(TARGET_OS_NETBSD)
+ #include <endian.h>
+ #undef BIG_ENDIAN
+ #undef LITTLE_ENDIAN
+-#if __BYTE_ORDER == __LITTLE_ENDIAN
++#if __BYTE_ORDER == __LITTLE_ENDIAN || _BYTE_ORDER == _LITTLE_ENDIAN
+ #  define LITTLE_ENDIAN
+ #else
+ #  define BIG_ENDIAN
+@@ -100,6 +100,10 @@ void swab( const char *from, char *to, i
+ #endif
+ #endif
+ 
++#if defined(LITTLE_ENDIAN) && defined(BIG_ENDIAN)
++#error "Both LITTLE_ENDIAN and BIG_ENDIAN are defined and this should not happen."
++#endif
++
+ /* memmove is not defined on SUN4, but memcpy will do */
+ #ifdef TARGET_OS_SUN4
+ #define memmove memcpy
diff --git a/mbrolavox-us1/DESCR b/mbrolavox-us1/DESCR
new file mode 100644
index 0000000000..f894b2d783
--- /dev/null
+++ b/mbrolavox-us1/DESCR
@@ -0,0 +1 @@
+American English female voice for MBROLA.
diff --git a/mbrolavox-us1/Makefile b/mbrolavox-us1/Makefile
new file mode 100644
index 0000000000..8a2f09fb65
--- /dev/null
+++ b/mbrolavox-us1/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+VOX=	us1
+VER=	0.3
+PKGNAME=	mbrolavox-${VOX}-${VER}
+GITHUB_PROJECT=	MBROLA-voices
+GITHUB_TAG=	refs/heads/master
+DISTNAME=	master
+CATEGORIES=	audio
+MASTER_SITES=	${MASTER_SITE_GITHUB:=numediart/}
+EXTRACT_SUFX=	.zip
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+WRKSRC=	${WRKDIR}/MBROLA-voices-master/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/numediart/MBROLA-voices
+COMMENT=	American English female voice for MBROLA
+LICENSE=	gnu-agpl-v3
+
+DEPENDS=	mbrola-[0-9]*:../../audio/mbrola
+
+USE_TOOLS+=	pax
+
+NO_BUILD=	yes
+
+MHOME=	${PREFIX}/share/mbrola/voices
+
+do-install:
+	${INSTALL_DATA_DIR} ${DESTDIR}${MHOME}
+	cd ${WRKSRC}/data && pax -rw ${VOX} ${DESTDIR}${MHOME}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mbrolavox-us1/PLIST b/mbrolavox-us1/PLIST
new file mode 100644
index 0000000000..eb3edf111d
--- /dev/null
+++ b/mbrolavox-us1/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+share/mbrola/voices/us1/README.txt
+share/mbrola/voices/us1/TEST/alice.pho
+share/mbrola/voices/us1/TEST/mbrola.pho
+share/mbrola/voices/us1/TEST/mbroli.ini
+share/mbrola/voices/us1/TEST/push.pho
+share/mbrola/voices/us1/TEST/xmas.pho
+share/mbrola/voices/us1/license.txt
+share/mbrola/voices/us1/us1
+share/mbrola/voices/us1/us1mrpa
diff --git a/mbrolavox-us1/distinfo b/mbrolavox-us1/distinfo
new file mode 100644
index 0000000000..c2bf1e096a
--- /dev/null
+++ b/mbrolavox-us1/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (MBROLA-voices/master.zip) = bcc03144a289035afe1f5e177b37b9af9e466c2f6f14725e510b7bea222f3705
+SHA512 (MBROLA-voices/master.zip) = 00eb9a585b3fb5157b8f8d63ed751db1e026a29fbc91dc2aed82a478114c4ea4badf4ea567fdc3293a4355b25107143ad4b1f8fe6c5cc3e9db4acae88e9c19b7
+Size (MBROLA-voices/master.zip) = 583115117 bytes


Home | Main Index | Thread Index | Old Index