12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- # Build recipe for espeak.
- #
- # Copyright (c) 2018 Thiago Seus, <thiago.seus@yahoo.com.br>.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- program=espeak
- version=1.48.04
- short_version=1.48
- release=1
- tarname=${program}-${version}-source.zip
- # Remote source(s)
- fetch=https://downloads.sourceforge.net/project/espeak/espeak/espeak-${short_version}/$tarname
- description="
- Speech Synthesizer.
- eSpeak is a compact, multi-language, text-to-speech synthesizer.
- "
- homepage=http://espeak.sourceforge.net
- license=GPLv3+
- # Source documentation
- docs="ChangeLog.txt License.txt ReadMe docs/"
- docsdir="${docdir}/${program}-${version}"
- # The package has a custom source directory
- srcdir=${program}-${version}-source
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir/src"
- # Use the PortAudio (sound interface library) version 19
- ln -sf portaudio19.h portaudio.h
- make -j${jobs} CXXFLAGS="$QICXXFLAGS -Wno-narrowing" LDFLAGS="$QILDFLAGS" \
- PREFIX=/usr LIBDIR=/usr/lib${libSuffix}
- make -j${jobs} PREFIX=/usr LIBDIR=/usr/lib${libSuffix} \
- DESTDIR="$destdir" install
- cd ..
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p -r $docs "${destdir}${docsdir}"
- # Rename docs/ directory for the package
- mv "${destdir}${docsdir}/docs" "${destdir}${docsdir}/html"
- }
|