Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
# New ports collection makefile for: festival
|
|
|
|
# Date created: 2000-06-11
|
2003-11-13 11:11:35 +01:00
|
|
|
# Whom: Trevor Johnson
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
# based on the NetBSD port
|
|
|
|
#
|
|
|
|
# $NetBSD: Makefile,v 1.11 1999/12/28 04:19:58 wiz Exp $
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= festival
|
2007-03-26 10:48:43 +02:00
|
|
|
PORTVERSION= 1.96
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2003-10-04 03:34:47 +02:00
|
|
|
CATEGORIES= audio accessibility
|
2002-05-23 06:35:39 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_FESTIVAL}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
2006-04-06 09:31:27 +02:00
|
|
|
DISTFILES= ${DISTNAME}-beta.tar.gz \
|
2007-03-26 10:48:43 +02:00
|
|
|
speech_tools-1.2.${PORTVERSION:E}-beta.tar.gz
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
|
2006-04-06 09:31:27 +02:00
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= Multi-lingual speech synthesis system
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
|
2007-03-26 10:48:43 +02:00
|
|
|
OPTIONS= NAS "Enable Network Audio System (NAS) backend" on \
|
|
|
|
ESD "Enable ESound backend" on
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
|
|
|
|
DIST_SUBDIR= festival
|
|
|
|
|
2005-10-17 08:17:44 +02:00
|
|
|
CONFIGURE_WRKSRC= ${WRKDIR}/festival
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
SPEECHTOOLS= ${WRKSRC}/speech_tools
|
|
|
|
FESTIVAL= ${WRKSRC}/festival
|
2005-10-17 08:17:44 +02:00
|
|
|
MAKE_ENV+= GCC="${CC}" \
|
|
|
|
GXX="${CXX}" \
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
EST_HOME=${SPEECHTOOLS} \
|
|
|
|
EGCS_CC="${CC}" \
|
2008-07-25 11:08:42 +02:00
|
|
|
EGCS_CXX="${CXX}"
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
MAN1= festival.1 festival_client.1
|
2005-10-17 08:17:44 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
|
|
|
|
do-build:
|
2007-03-26 10:48:43 +02:00
|
|
|
.for d in speech_tools festival
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKDIR}/$d ${MAKE_FLAGS} Makefile \
|
|
|
|
${MAKE_ARGS}
|
2001-04-20 12:27:09 +02:00
|
|
|
.endfor
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
|
2007-03-26 10:48:43 +02:00
|
|
|
# Can not make test in `festival', because the voices may not be installed
|
|
|
|
# XXX: this should fail, if the verdict is not "Test OK"...
|
|
|
|
post-build test:
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKDIR}/speech_tools test
|
|
|
|
|
|
|
|
post-patch::
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
|
2007-05-22 22:33:30 +02:00
|
|
|
${WRKSRC}/*/config/systems/default.mak
|
2007-03-26 10:48:43 +02:00
|
|
|
|
2007-05-22 22:33:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.for m in nas esd
|
|
|
|
. ifdef WITH_${m:U}
|
2007-05-23 00:16:01 +02:00
|
|
|
LIB_DEPENDS+= ${m:nas=audio}:${PORTSDIR}/audio/${m:esd=esound}
|
2007-03-26 10:48:43 +02:00
|
|
|
post-patch::
|
2007-05-22 22:33:30 +02:00
|
|
|
${REINPLACE_CMD} -e 's,# INCLUDE_MODULES += ${m:U}_AUDIO,INCLUDE_MODULES += ${m:U}_AUDIO,' \
|
2007-03-26 10:48:43 +02:00
|
|
|
${WRKDIR}/*/config/config.in
|
2007-05-22 22:33:30 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-$m
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--disable-$m
|
|
|
|
. endif
|
|
|
|
.endfor
|
2007-03-26 10:48:43 +02:00
|
|
|
|
2006-04-06 09:31:27 +02:00
|
|
|
do-configure:
|
|
|
|
.for d in speech_tools festival
|
|
|
|
@cd ${WRKDIR}/$d && \
|
|
|
|
if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
|
|
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}; then \
|
|
|
|
${ECHO_CMD} "===> configuration script for $d failed."; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
# This step helps non-i386 systems and is harmless on i386
|
|
|
|
-${LN} -s ix86_FreeBSD.mak ${WRKDIR}/$d/config/systems/${ARCH}_unknown.mak
|
|
|
|
${REINPLACE_CMD} -E -e 's,^(CC|CXX) *=,\1 ?=,' \
|
|
|
|
-e 's,^(CFLAGS|CXXFLAGS) *=,\1 +=,' \
|
|
|
|
-e 's,^OPTIMI,#OPTIMI,' \
|
|
|
|
${WRKSRC}/speech_tools/config/compilers/gcc*.mak
|
|
|
|
.endfor
|
2007-03-26 10:48:43 +02:00
|
|
|
# This step helps to use a compiler, the vendor has not seen before:
|
|
|
|
${TEST} -e ${WRKDIR}/speech_tools/config/compilers/${CC}.mak || \
|
|
|
|
${LN} -s gcc_defaults.mak ${WRKDIR}/speech_tools/config/compilers/${CC}.mak
|
2005-10-29 00:45:32 +02:00
|
|
|
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
do-install:
|
2007-07-20 22:06:20 +02:00
|
|
|
${MKDIR} ${DATADIR}/lib/voices/english/
|
|
|
|
${MKDIR} ${DATADIR}/lib/voices/spanish/
|
|
|
|
${MKDIR} ${DATADIR}/lib/dicts
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
${CHMOD} -R u+w,a+r,og-w ${FESTIVAL}/lib
|
2003-11-13 12:38:29 +01:00
|
|
|
${FIND} ${FESTIVAL}/lib -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
2007-07-20 22:06:20 +02:00
|
|
|
cd ${FESTIVAL} && ${CP} -pPR lib examples ${DATADIR}
|
|
|
|
${RM} -rf ${DATADIR}/lib/etc/Makefile ${DATADIR}/lib/etc/*FreeBSD* \
|
|
|
|
${DATADIR}/lib/etc/*unknown
|
2006-04-06 09:31:27 +02:00
|
|
|
${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/*/audsp ${PREFIX}/libexec
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival ${PREFIX}/libexec/festival.naked
|
|
|
|
${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival_client ${PREFIX}/libexec/festival_client.naked
|
|
|
|
for n in festival.sh festival_client.sh sitevars.scm; \
|
|
|
|
do {\
|
2007-07-20 22:06:20 +02:00
|
|
|
${SED} "s%@PKG_FESTIVAL_LOCATION@%${DATADIR}%; \
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
s%@PKG_PREFIX@%${PREFIX}%" <${FILESDIR}/$$n > ${WRKDIR}/$$n ;} \
|
|
|
|
done
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/festival.sh ${PREFIX}/bin/festival
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/festival_client.sh ${PREFIX}/bin/festival_client
|
2007-07-20 22:06:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/sitevars.scm ${DATADIR}/lib/sitevars.scm
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
${INSTALL_MAN} ${FESTIVAL}/doc/festival.1 ${PREFIX}/man/man1/festival.1
|
|
|
|
${INSTALL_MAN} ${FESTIVAL}/doc/festival_client.1 ${PREFIX}/man/man1/festival_client.1
|
2006-04-06 09:31:27 +02:00
|
|
|
${CAT} ${PKGMESSAGE}
|
Add festival 1.4.1, a multi-lingual text-to-speech system for Unix. This
commit includes the various ports festival can work with. Big thanks to
Trevor for putting in all the time to port these!
PR: 21182, 21183, 21184, 21185, 21186, 21187, 21188, 21189
21190, 21191, 21192, 21193, 21194, 21195, 21196, 21197
21198, 21199, 21200, 21201
Submitted by: Trevor Johnson <trevor@jpj.net>
Obtained from: NetBSD pkgsrc
2000-09-16 10:39:50 +02:00
|
|
|
|
2003-05-18 14:00:35 +02:00
|
|
|
.include <bsd.port.post.mk>
|