recipe 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Build recipe for imlib2.
  2. #
  3. # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
  4. # Copyright (c) 2018-2020 Matias Fonzo, <selk@dragora.org>.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. program=imlib2
  18. version=1.5.1
  19. release=4
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/x-libs"
  22. tarname=${program}-${version}.tar.bz2
  23. # Remote source(s)
  24. fetch=http://downloads.sourceforge.net/project/enlightenment/imlib2-src/${version}/$tarname
  25. description="
  26. Imlib2 is the (intended) successor to Imlib.
  27. Imlib2 can load image files from disk in one of many formats, save
  28. images to disk in one of many formats, render image data onto other
  29. images, render images to an X-Windows drawable, produce pixmaps and
  30. pixmap masks of images, apply filters to images, rotate images,
  31. accept RGBA data for images, scale images, and more.
  32. "
  33. homepage=http://www.enlightenment.org/
  34. license=BSD
  35. # Source documentation
  36. docs="AUTHORS COPYING COPYING-PLAIN ChangeLog README TODO"
  37. docsdir="${docdir}/${program}-${version}"
  38. build()
  39. {
  40. set -e
  41. unpack "${tardir}/$tarname"
  42. cd "$srcdir"
  43. case $arch in
  44. i?86)
  45. assembly_opts=--enable-mmx
  46. ;;
  47. x86_64)
  48. assembly_opts=--enable-amd64
  49. ;;
  50. esac
  51. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  52. $configure_args \
  53. --libdir=/usr/lib${libSuffix} \
  54. --with-id3 \
  55. --with-x \
  56. --build="$(cc -dumpmachine)" \
  57. $assembly_opts
  58. unset assembly_opts
  59. make -j${jobs} V=1
  60. make -j${jobs} DESTDIR="$destdir" install-strip
  61. # Copy documentation
  62. mkdir -p "${destdir}${docsdir}"
  63. cp -p $docs "${destdir}${docsdir}/"
  64. }