recipe 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Recipe file for allegro.
  2. #
  3. # Maintainers: (C) 2016,2017 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=allegro
  7. version=5.2.3.0
  8. release=1
  9. description="
  10. Allegro is a cross-platform library mainly aimed at video game and
  11. multimedia programming. It handles common, low-level tasks such as
  12. creating windows, accepting user input, loading data, drawing images,
  13. playing sounds, etc. and generally abstracting away the underlying
  14. platform. However, Allegro is not a game engine: you are free to
  15. design and structure your program as you like.
  16. "
  17. homepage=http://liballeg.org/
  18. license=zlib
  19. tarname=${program}-${version}.tar.gz
  20. # Remote source(s)
  21. fetch="http://github.com/liballeg/allegro5/releases/download/${version}/$tarname"
  22. # Source documentation
  23. docs="CHANGES* CONTRIBUTORS.txt LICENSE.txt README*"
  24. docsdir="${docdir}/${program}-${version}"
  25. build() {
  26. unpack "${tardir}/$tarname"
  27. cd "$srcdir"
  28. mkdir -p build && cd build
  29. cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  30. make -j${jobs}
  31. make -j${jobs} install DESTDIR="$destdir"
  32. cd ..
  33. # Copy documentation
  34. mkdir -p "${destdir}${docsdir}"
  35. cp -p $docs "${destdir}${docsdir}"
  36. }