blob: 991f0bd7fb296b4e5a25609a365b50ddc7e43eb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# $NetBSD: Makefile,v 1.46 2005/12/03 04:14:05 joerg Exp $
DISTNAME= festival-1.95-beta
PKGNAME= festival-1.95beta
CATEGORIES= audio
MASTER_SITES= http://festvox.org/packed/festival/1.95/ \
ftp://cslu.cse.ogi.edu/pub/tts/
DISTFILES= ${DISTNAME}.tar.gz \
speech_tools-1.2.95-beta.tar.gz
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.cstr.ed.ac.uk/projects/festival/
COMMENT= Advanced multi-lingual speech synthesis system
WRKSRC= ${WRKDIR}
USE_TOOLS+= gmake
SPEECHTOOLS= ${WRKSRC}/speech_tools
FESTIVAL= ${WRKSRC}/festival
FHOME= ${PREFIX}/share/festival
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ${SPEECHTOOLS}/configure
CONFIG_GUESS_OVERRIDE= ${SPEECHTOOLS}/config.guess ${FESTIVAL}/config.guess
CONFIG_SUB_OVERRIDE= ${SPEECHTOOLS}/config.sub ${FESTIVAL}/config.sub
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Msunpro)
PKG_COMPILER?= suncc
.else
PKG_COMPILER_cmd= case "${CC_VERSION}" in \
gcc-2.6.*) ${ECHO} gcc26;; \
gcc-2.7.*) ${ECHO} gcc27;; \
gcc-2.8.*) ${ECHO} gcc28;; \
gcc-2.95.*) ${ECHO} gcc295;; \
gcc-3.3.*) ${ECHO} gcc32;; \
gcc-3.4.*) ${ECHO} gcc32;; \
egcs*) ${ECHO} egcs;; \
*) ${ECHO} ;; \
esac
PKG_COMPILER= ${PKG_COMPILER_cmd:sh}
.endif
.if empty(PKG_COMPILER)
PKG_FAIL_REASON= "${CC_VERSION} is not currently supported."
.endif
MAKE_ENV+= PKG_EST_HOME="${SPEECHTOOLS}" \
EST_HOME="${SPEECHTOOLS}" \
PKG_FESTIVAL_BUILD_HOME="${FESTIVAL}" \
PKG_FESTIVAL_HOME="${FHOME}" \
PKG_COMPILER="${PKG_COMPILER}" \
PKG_X11BASE="${X11BASE}" \
PKG_PREFIX="${PREFIX}" \
EGCS_CC="${CC}" \
EGCS_CXX="${CXX}" \
GCC295_CC="${CC}" \
GCC295_CXX="${CXX}" \
GCC28_CC="${CC}" \
GCC28_CXX="${CXX}" \
GCC27_CC="${CC}" \
GCC27_CXX="${CXX}" \
GCC26_CC="${CC}" \
GCC26_CXX="${CXX}" \
CC="${CC}" \
CXX="${CXX}"
INSTALLATION_DIRS= bin libexec man/man1
post-patch:
@${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile
.if exists(${FILESDIR}/unknown_${OPSYS}.mak)
@${CP} ${FILESDIR}/unknown_${OPSYS}.mak ${SPEECHTOOLS}/config/systems/unknown_${OPSYS}.mak
@${CP} ${FILESDIR}/unknown_${OPSYS}.mak ${FESTIVAL}/config/systems/unknown_${OPSYS}.mak
.endif
do-install:
${INSTALL_DATA_DIR} ${FHOME}
${CHMOD} -R u+w,a+r,og-w ${FESTIVAL}/lib
${FIND} ${FESTIVAL}/lib -type d -print | ${XARGS} ${CHMOD} 755
-@${MV} ${FESTIVAL}/lib/etc/unknown_${OPSYS} ${FESTIVAL}/lib/etc/pkgsrc
cd ${FESTIVAL} && ${PAX} -rw lib examples ${FHOME}
${RM} ${FHOME}/examples/Makefile.orig
${RM} -f ${FHOME}/lib/etc/unknown_${OPSYS}/audsp ${FHOME}/lib/etc/pkgsrc/audsp
${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/pkgsrc/audsp ${PREFIX}/libexec
${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 \
${SED} "s%@PKG_FESTIVAL_LOCATION@%${FHOME}%; \
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
${INSTALL_DATA} ${WRKDIR}/sitevars.scm ${FHOME}/lib/sitevars.scm
${INSTALL_MAN} ${FESTIVAL}/doc/festival.1 ${PREFIX}/man/man1/festival.1
${INSTALL_MAN} ${FESTIVAL}/doc/festival_client.1 ${PREFIX}/man/man1/festival_client.1
.include "../../audio/nas/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|