recipe 876 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Recipe file for leptonica.
  2. #
  3. # Maintainers: (C) 2016 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=leptonica
  7. version=1.73
  8. release=1
  9. description="
  10. Image processing library
  11. "
  12. homepage=http://www.leptonica.org/
  13. license=custom
  14. tarname=${program}-${version}.tar.gz
  15. # Remote source(s)
  16. fetch=http://www.leptonica.org/source/$tarname
  17. # Parallel jobs for the compiler
  18. jobs=1
  19. # Source documentation
  20. docs="README* leptonica-license.txt"
  21. docsdir="${docdir}/${program}-${version}"
  22. build() {
  23. unpack "${tardir}/$tarname"
  24. cd "$srcdir"
  25. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS"
  26. make -j${jobs}
  27. make -j${jobs} install DESTDIR="$destdir"
  28. # Copy documentation
  29. mkdir -p "${destdir}${docsdir}"
  30. for file in $docs ; do
  31. cp -p $file "${destdir}${docsdir}"
  32. done
  33. }