recipe 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Build recipe for libass.
  2. #
  3. # Copyright (C) 2018 Kevin "The Nuclear" Bloom, <nuclearkev@dragora.org>
  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. #
  17. # Based on recipes written by Mateus P. Rodrigues, <mprodrigues@dragora.org>
  18. # and Matias Fonzo, <selk@dragora.org>.
  19. program=libass
  20. version=0.14.0
  21. release=1
  22. tarname=${program}-${version}.tar.gz
  23. # Remote source(s)
  24. # fetch=https://github.com/libass/libass/releases/download/${version}/$tarname
  25. description="
  26. libass - rending library for ASS/SSA format
  27. libass is a portable subtitle renderer for the ASS/SSA (Advanced
  28. Substation Alpha/Substation Alpha) subtitle format.
  29. "
  30. homepage=https://github.com/libass/
  31. license="ISC"
  32. # Source documentation
  33. docs="COPYING ChangeLog"
  34. docsdir="${docdir}/${program}-${version}"
  35. build()
  36. {
  37. set -e
  38. unpack "${tardir}/$tarname"
  39. cd "$srcdir"
  40. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  41. $configure_args \
  42. --libdir=/usr/lib${libSuffix} \
  43. --infodir=$infodir \
  44. --mandir=$mandir \
  45. --docdir=$docdir \
  46. --build="$(cc -dumpmachine)"
  47. make -j${jobs} V=1
  48. make -j${jobs} DESTDIR="$destdir" install
  49. # Delete index file for the package
  50. if test -d "${destdir}/$infodir"
  51. then
  52. rm -f "${destdir}/${infodir}/dir"
  53. fi
  54. # Copy documentation
  55. mkdir -p "${destdir}${docsdir}"
  56. for file in $docs
  57. do
  58. if test -e $file
  59. then
  60. cp -p $file "${destdir}${docsdir}"
  61. fi
  62. done
  63. }