1 # Build recipe for espeak.
3 # Copyright (c) 2018 Thiago Seus, <thiago.seus@yahoo.com.br>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
22 # Define a category for the output of the package name
25 tarname=${program}-${version}-source.zip
28 fetch=http://downloads.sourceforge.net/project/espeak/espeak/espeak-${short_version}/$tarname
33 eSpeak is a compact, multi-language, text-to-speech synthesizer.
36 homepage=http://espeak.sourceforge.net
39 # Source documentation
40 docs="ChangeLog.txt License.txt ReadMe docs/"
41 docsdir="${docdir}/${program}-${version}"
43 # The package has a custom source directory
44 srcdir=${program}-${version}-source
50 unpack "${tardir}/$tarname"
54 # Use the PortAudio (sound interface library) version 19
55 ln -sf portaudio19.h portaudio.h
57 make -j${jobs} CXXFLAGS="$QICXXFLAGS -Wno-narrowing" LDFLAGS="$QILDFLAGS" \
58 PREFIX=/usr LIBDIR=/usr/lib${libSuffix}
60 make -j${jobs} PREFIX=/usr LIBDIR=/usr/lib${libSuffix} \
61 DESTDIR="$destdir" install
66 mkdir -p "${destdir}${docsdir}"
67 cp -p -r $docs "${destdir}${docsdir}"
69 # Rename docs/ directory for the package
70 mv "${destdir}${docsdir}/docs" "${destdir}${docsdir}/html"