recipe 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Build recipe for espeak.
  2. #
  3. # Copyright (c) 2018 Thiago Seus, <thiago.seus@yahoo.com.br>.
  4. #
  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
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  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.
  16. program=espeak
  17. version=1.48.04
  18. short_version=1.48
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/tools"
  22. tarname=${program}-${version}-source.zip
  23. # Remote source(s)
  24. fetch=https://downloads.sourceforge.net/project/espeak/espeak/espeak-${short_version}/$tarname
  25. description="
  26. Speech Synthesizer.
  27. eSpeak is a compact, multi-language, text-to-speech synthesizer.
  28. "
  29. homepage=http://espeak.sourceforge.net
  30. license=GPLv3+
  31. # Source documentation
  32. docs="ChangeLog.txt License.txt ReadMe docs/"
  33. docsdir="${docdir}/${program}-${version}"
  34. # The package has a custom source directory
  35. srcdir=${program}-${version}-source
  36. build()
  37. {
  38. set -e
  39. unpack "${tardir}/$tarname"
  40. cd "$srcdir/src"
  41. # Use the PortAudio (sound interface library) version 19
  42. ln -sf portaudio19.h portaudio.h
  43. make -j${jobs} CXXFLAGS="$QICXXFLAGS -Wno-narrowing" LDFLAGS="$QILDFLAGS" \
  44. PREFIX=/usr LIBDIR=/usr/lib${libSuffix}
  45. make -j${jobs} PREFIX=/usr LIBDIR=/usr/lib${libSuffix} \
  46. DESTDIR="$destdir" install
  47. cd ..
  48. # Copy documentation
  49. mkdir -p "${destdir}${docsdir}"
  50. cp -p -r $docs "${destdir}${docsdir}"
  51. # Rename docs/ directory for the package
  52. mv "${destdir}${docsdir}/docs" "${destdir}${docsdir}/html"
  53. }