diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
commit | b70981b68efcce5256eb11c6cd26ae123b10b6ea (patch) | |
tree | a38be6efae5e2ba15c2e839504632f9b7bfd5f91 /main/espeak | |
parent | 2b4df81538b8398442d5296650905c70341dd8d3 (diff) | |
download | aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2 aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz |
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'main/espeak')
-rw-r--r-- | main/espeak/APKBUILD | 42 | ||||
-rw-r--r-- | main/espeak/espeak-1.40.02-uclibc++.patch | 21 |
2 files changed, 63 insertions, 0 deletions
diff --git a/main/espeak/APKBUILD b/main/espeak/APKBUILD new file mode 100644 index 0000000000..bf005e00a5 --- /dev/null +++ b/main/espeak/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=espeak +pkgver=1.40.02 +pkgrel=0 +pkgdesc="Speech synthesizer for English and other languages" +url="http://espeak.sourceforge.net/" +license="GPL-3" +subpackages="$pkgname-dev" +depends="uclibc uclibc++" +makedepends="uclibc++-dev" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-source.zip + $pkgname-$pkgver-uclibc++.patch" + +build() { + 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" + cd "$s"/platforms/big_endian + make + ./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" + install -d "$pkgdir"/usr/share/espeak-data + cp -r dictsource "$pkgdir"/usr/share/espeak-data +} + +md5sums="708954b44c526e8174df8b88a6382738 espeak-1.40.02-source.zip +c13bb95088c5777b4d3e5ea10ca37517 espeak-1.40.02-uclibc++.patch" diff --git a/main/espeak/espeak-1.40.02-uclibc++.patch b/main/espeak/espeak-1.40.02-uclibc++.patch new file mode 100644 index 0000000000..6899220525 --- /dev/null +++ b/main/espeak/espeak-1.40.02-uclibc++.patch @@ -0,0 +1,21 @@ +--- 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 + |