Commit 4c465ebf authored by Natanael Copa's avatar Natanael Copa

main/espeak: upgrade to 1.42.04

parent 8a1ef73b
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=espeak pkgname=espeak
pkgver=1.40.02 pkgver=1.42.04
pkgrel=0 pkgrel=0
pkgdesc="Speech synthesizer for English and other languages" pkgdesc="Speech synthesizer for English and other languages"
url="http://espeak.sourceforge.net/" url="http://espeak.sourceforge.net/"
license="GPL-3" license="GPL-3"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
depends="uclibc uclibc++" depends=
makedepends="uclibc++-dev" makedepends=
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-source.zip source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-source.zip"
$pkgname-$pkgver-uclibc++.patch"
build() { _builddir="$srcdir"/$pkgname-$pkgver-source
local s="$srcdir"/$pkgname-$pkgver-source
cd "$s"
for i in ../*.patch; do
msg "Applying $i..."
patch -p1 < $i || return 1
done
export CXX=g++-uc
cd src
make CXXFLAGS="${CXXFLAGS}" AUDIO=none all || return 1
msg "Fixing byte order of phoneme data files" build() {
cd "$s"/platforms/big_endian cd "$_builddir"/src
make make AUDIO=none || return 1
./espeak-phoneme-data "$s"/espeak-data }
cp -f phondata phonindex phontab "$s"/espeak-data
cd "$s"/src
make DESTDIR="$pkgdir" AUDIO=none install || return 1
cd "$s" package() {
install -d "$pkgdir"/usr/share/espeak-data cd "$_builddir"/src
cp -r dictsource "$pkgdir"/usr/share/espeak-data make AUDIO=none DESTDIR="$pkgdir" install || return 1
} }
md5sums="708954b44c526e8174df8b88a6382738 espeak-1.40.02-source.zip md5sums="a4cbbe5f2e2a37ccc0aa1a687a6e4c11 espeak-1.42.04-source.zip"
c13bb95088c5777b4d3e5ea10ca37517 espeak-1.40.02-uclibc++.patch"
--- espeak-1.40.02-source.orig/src/Makefile 2008-12-26 10:11:49 +0000
+++ espeak-1.40.02-source/src/Makefile 2008-12-26 10:27:48 +0000
@@ -60,15 +60,15 @@
SRCS1=$(speak_SOURCES)
OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
-LIBS1=-lstdc++ $(LIB_AUDIO) -lpthread $(EXTRA_LIBS)
+LIBS1=-lm $(LIB_AUDIO) -lpthread $(EXTRA_LIBS)
SRCS2=$(libespeak_SOURCES)
OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2))
-LIBS2=-lstdc++ $(LIB_AUDIO) -lpthread
+LIBS2=-lm $(LIB_AUDIO) -lpthread
SRCS3 = espeak.cpp
OBJS3=$(patsubst %.cpp,%.o,$(SRCS3))
-LIBS3=-lstdc++ -L . -lespeak
+LIBS3=-L . -lespeak -lpthread
CXXFLAGS=-O2
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment