mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-14 20:32:17 +01:00
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=flite
|
|
pkgver=1.4
|
|
pkgrel=2
|
|
pkgdesc="Small, fast speech synthesis engine (text-to-speech)"
|
|
url="http://www.speech.cs.cmu.edu/flite/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=
|
|
depends_dev=
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-dev"
|
|
source="http://www.speech.cs.cmu.edu/flite/packed/flite-1.4/flite-$pkgver-release.tar.bz2"
|
|
|
|
_builddir="$srcdir"/flite-$pkgver-release
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
update_config_sub || return 1
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
CFLAGS="$CFLAGS -fPIC" ./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--enable-shared \
|
|
--localstatedir=/var \
|
|
|| return 1
|
|
# work around parallel build issue
|
|
make -C include
|
|
make -C src
|
|
make -C lang
|
|
make -C tools
|
|
make -j1 || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make install INSTALLBINDIR="$pkgdir"/usr/bin \
|
|
INSTALLLIBDIR="$pkgdir"/usr/lib \
|
|
INSTALLINCDIR="$pkgdir"/usr/include/flite \
|
|
|| return 1
|
|
}
|
|
|
|
md5sums="b7c3523b3bbc6f29ce61e6650cd9a428 flite-1.4-release.tar.bz2"
|