aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2003-10-29 18:39:36 +0800
committertrevor <trevor@FreeBSD.org>2003-10-29 18:39:36 +0800
commit949020df380ff9426e310549b8bc65ac7a2c1735 (patch)
treed4b7511302b8f97d8e8339ea828abe5cb867443b /audio
parent95aa67325acd5f7b909c7272321ca6b40ce7a748 (diff)
downloadfreebsd-ports-gnome-949020df380ff9426e310549b8bc65ac7a2c1735.tar.gz
freebsd-ports-gnome-949020df380ff9426e310549b8bc65ac7a2c1735.tar.zst
freebsd-ports-gnome-949020df380ff9426e310549b8bc65ac7a2c1735.zip
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.
Diffstat (limited to 'audio')
-rw-r--r--audio/festival+OGI/Makefile45
-rw-r--r--audio/festival+OGI/files/patch-speech_tools_voxware.cc13
-rw-r--r--audio/festival/Makefile45
-rw-r--r--audio/festival/files/patch-speech_tools_voxware.cc13
4 files changed, 70 insertions, 46 deletions
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 <bsd.port.pre.mk>
-
-.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 <bsd.port.pre.mk>
+
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 <machine/soundcard.h>
++#include <sys/soundcard.h>
+ #include <fcntl.h>
+ int freebsd16_supported = TRUE;
+ int linux16_supported = FALSE;
diff --git a/audio/festival/Makefile b/audio/festival/Makefile
index 43f27bd1ca2b..22295be58eec 100644
--- a/audio/festival/Makefile
+++ b/audio/festival/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 <bsd.port.pre.mk>
-
-.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 <bsd.port.pre.mk>
+
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/files/patch-speech_tools_voxware.cc b/audio/festival/files/patch-speech_tools_voxware.cc
new file mode 100644
index 000000000000..6e9b564ed8ab
--- /dev/null
+++ b/audio/festival/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 <machine/soundcard.h>
++#include <sys/soundcard.h>
+ #include <fcntl.h>
+ int freebsd16_supported = TRUE;
+ int linux16_supported = FALSE;