From 949020df380ff9426e310549b8bc65ac7a2c1735 Mon Sep 17 00:00:00 2001 From: trevor Date: Wed, 29 Oct 2003 10:39:36 +0000 Subject: Enable compilation on FreeBSD 5.X. Try to support architectures besides Alpha and i386. Use the FIND macro introduced in bsd.port.mk 1.391. Tidy whitespace. --- audio/festival+OGI/Makefile | 45 +++++++++++----------- .../files/patch-speech_tools_voxware.cc | 13 +++++++ 2 files changed, 35 insertions(+), 23 deletions(-) create mode 100644 audio/festival+OGI/files/patch-speech_tools_voxware.cc (limited to 'audio/festival+OGI') diff --git a/audio/festival+OGI/Makefile b/audio/festival+OGI/Makefile index 43f27bd1ca2b..22295be58eec 100644 --- a/audio/festival+OGI/Makefile +++ b/audio/festival+OGI/Makefile @@ -41,16 +41,12 @@ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-aa-ogi RESTRICTED= no-commercial-use .endif +FESTIVAL_ARCH= ${MACHINE_ARCH:S/i386/ix86/} +USE_GCC= 2.95 .if defined (WITH_OGI) PLIST= ${WRKDIR}/pkg-plist .endif -.include - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not build" -.endif - WRKSRC= ${WRKDIR} USE_GMAKE= yes @@ -99,29 +95,32 @@ pre-fetch: .endif pre-patch: - ${CP} ${SPEECHTOOLS}/config/config-dist ${SPEECHTOOLS}/config/config && \ + ${CP} ${SPEECHTOOLS}/config/config-dist ${SPEECHTOOLS}/config/config &&\ ${CHMOD} u+w ${SPEECHTOOLS}/config/config ${CP} ${FESTIVAL}/config/config-dist ${FESTIVAL}/config/config && \ ${CHMOD} u+w ${FESTIVAL}/config/config +.include + post-patch: - ${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile - ${CP} ${FILESDIR}/FreeBSD.mak ${SPEECHTOOLS}/config/systems/FreeBSD.mak -.for arch in alpha ix86 -.for i in 4 5 - ${LN} -fs ${SPEECHTOOLS}/config/systems/ix86_FreeBSD3.3.mak \ - ${SPEECHTOOLS}/config/systems/${arch}_FreeBSD3.${i}.mak -.endfor +.if ${OSVERSION} >= 500113 +.for ii in compilers/gcc27.mak config config-dist + @${MV} ${SPEECHTOOLS}/config/${ii} ${SPEECHTOOLS}/config/${ii}.orig + @${SED} -e "s:= gcc:= gcc295:g" < ${SPEECHTOOLS}/config/${ii}.orig \ + > ${SPEECHTOOLS}/config/${ii} .endfor -.for arch in alpha ix86 -.for i in 1 2 3 4 5 6 7 8 9 - ${LN} -fs ${SPEECHTOOLS}/config/systems/ix86_FreeBSD4.0.mak \ - ${SPEECHTOOLS}/config/systems/${arch}_FreeBSD4.${i}.mak +.endif + @${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile + @${CP} ${FILESDIR}/FreeBSD.mak ${SPEECHTOOLS}/config/systems/FreeBSD.mak +.for i in 4 5 + @${LN} -fs ${SPEECHTOOLS}/config/systems/ix86_FreeBSD3.3.mak \ + ${SPEECHTOOLS}/config/systems/${FESTIVAL_ARCH}_FreeBSD3.${i}.mak .endfor +.for ii in 4 5 +.for jj in 1 2 3 4 5 6 7 8 9 10 11 + @${LN} -fs ${SPEECHTOOLS}/config/systems/ix86_FreeBSD4.0.mak \ + ${SPEECHTOOLS}/config/systems/${FESTIVAL_ARCH}_FreeBSD${ii}.${jj}.mak .endfor -.for arch in alpha ix86 - ${CP} ${SPEECHTOOLS}/config/systems/ix86_FreeBSD4.0.mak \ - ${SPEECHTOOLS}/config/systems/${arch}_FreeBSD5.0.mak .endfor pre-install: @@ -131,10 +130,10 @@ pre-install: do-install: ${MKDIR} ${FHOME}/lib/voices/english/ - ${MKDIR} ${FHOME}/lib/voices/spanish/ + ${MKDIR} ${FHOME}/lib/voices/spanish/ ${MKDIR} ${FHOME}/lib/dicts ${CHMOD} -R u+w,a+r,og-w ${FESTIVAL}/lib - find ${FESTIVAL}/lib -type d -print0| xargs -0 ${CHMOD} 755 + ${FIND} ${FESTIVAL}/lib -type d -print0 | xargs -0 ${CHMOD} 755 cd ${FESTIVAL} && ${CP} -pPR lib examples ${FHOME} ${RM} -rf ${FHOME}/lib/etc/*FreeBSD* ${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/*FreeBSD*/audsp ${PREFIX}/libexec diff --git a/audio/festival+OGI/files/patch-speech_tools_voxware.cc b/audio/festival+OGI/files/patch-speech_tools_voxware.cc new file mode 100644 index 000000000000..6e9b564ed8ab --- /dev/null +++ b/audio/festival+OGI/files/patch-speech_tools_voxware.cc @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- speech_tools/audio/voxware.cc.orig Tue Sep 28 16:38:22 1999 ++++ speech_tools/audio/voxware.cc Wed Oct 29 08:06:38 2003 +@@ -61,7 +61,7 @@ + #include "EST_error.h" + + #ifdef SUPPORT_FREEBSD16 +-#include ++#include + #include + int freebsd16_supported = TRUE; + int linux16_supported = FALSE; -- cgit