recipe 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. tarname=${program}-${version}-source.zip
  21. # Remote source(s)
  22. fetch=https://downloads.sourceforge.net/project/espeak/espeak/espeak-${short_version}/$tarname
  23. description="
  24. Speech Synthesizer.
  25. eSpeak is a compact, multi-language, text-to-speech synthesizer.
  26. "
  27. homepage=http://espeak.sourceforge.net
  28. license=GPLv3+
  29. # Source documentation
  30. docs="ChangeLog.txt License.txt ReadMe docs/"
  31. docsdir="${docdir}/${program}-${version}"
  32. # The package has a custom source directory
  33. srcdir=${program}-${version}-source
  34. build()
  35. {
  36. set -e
  37. unpack "${tardir}/$tarname"
  38. cd "$srcdir/src"
  39. # Use the PortAudio (sound interface library) version 19
  40. ln -sf portaudio19.h portaudio.h
  41. make -j${jobs} CXXFLAGS="$QICXXFLAGS -Wno-narrowing" LDFLAGS="$QILDFLAGS" \
  42. PREFIX=/usr LIBDIR=/usr/lib${libSuffix}
  43. make -j${jobs} PREFIX=/usr LIBDIR=/usr/lib${libSuffix} \
  44. DESTDIR="$destdir" install
  45. cd ..
  46. # Copy documentation
  47. mkdir -p "${destdir}${docsdir}"
  48. cp -p -r $docs "${destdir}${docsdir}"
  49. # Rename docs/ directory for the package
  50. mv "${destdir}${docsdir}/docs" "${destdir}${docsdir}/html"
  51. }