summaryrefslogtreecommitdiff
path: root/accessibility/flite/flite.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/flite/flite.SlackBuild')
-rw-r--r--accessibility/flite/flite.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/accessibility/flite/flite.SlackBuild b/accessibility/flite/flite.SlackBuild
index 6c0d9ee38c..8476c2e452 100644
--- a/accessibility/flite/flite.SlackBuild
+++ b/accessibility/flite/flite.SlackBuild
@@ -2,18 +2,23 @@
# Slackware build script for flite
# Written by Martin Lefebvre (dadexter@sekurity.com)
+# Maintained by B. Watson (yalhcru@gmail.com), original author is MIA
+
+# 20130411 bkw: Updated for flite 1.4, added fix for parallel builds.
+# Removed --with-vox=cmu_us_kal16 configure flag (it doesn't seem to
+# do anything).
+# The updated version is released under the WTFPL, see
+# http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=flite
-VERSION=1.3
+VERSION=1.4
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -43,12 +48,13 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION-release
-tar xvf $CWD/$PRGNAM-$VERSION-release.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-release.tar.bz2
cd $PRGNAM-$VERSION-release
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-patch -p1 < $CWD/flite-1.3-install_libs.diff
+# Minor fix to let parallel make succeed. Patch borrowed from gentoo.
+patch -p1 < $CWD/flite-1.4-fix-parallel-builds.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -57,12 +63,17 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --with-vox=cmu_us_kal16 \
+ --with-audio=alsa \
+ --enable-shared \
+ --disable-static \
--build=$ARCH-slackware-linux
make
make install prefix=$PKG/usr INSTALLLIBDIR=$PKG/usr/lib${LIBDIRSUFFIX}
+# --disable-static is accepted by configure but totally ignored, so:
+rm -rf $PKG/usr/lib$LIBDIRSUFFIX/*.a
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true