PKGBUILD 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Maintainer (arch): Sven-Hendrik Haase <svenstaro@archlinux.org>
  2. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  3. # Contributor: Márcio Silva <coadde@hyperbola.info>
  4. # parabola changes and rationale:
  5. # - not building ogre-docs
  6. # - removed nonfree samples and tests
  7. # - removed nonfree files and references
  8. # - added imgui.tar.gz to sources instead of downloading at build time
  9. pkgname=ogre
  10. pkgver=13.2.4
  11. pkgrel=1
  12. pkgrel+=.parabola1
  13. pkgdesc='Scene-oriented, flexible 3D engine written in C++'
  14. pkgdesc+=', without nonfree software support and files'
  15. arch=('x86_64')
  16. arch+=('i686' 'armv7h')
  17. url='http://www.ogre3d.org'
  18. license=('custom:MIT')
  19. depends=('freeimage' 'freetype2' 'libxaw' 'libxrandr' 'sdl2' 'glu' 'pugixml' 'zlib')
  20. makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'python' 'ninja' 'cppunit')
  21. install=ogre.install
  22. source=("$pkgname-$pkgver.tar.gz::https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz")
  23. source+=("imgui-1.85.tar.gz::https://github.com/ocornut/imgui/archive/v1.85.tar.gz"
  24. libre.patch)
  25. sha512sums=('6a07f919fb050d6863fcb2b6ab7aea54b279a1cc98377a5b8c9d773c74d7126a78ce0c23c1c4f62ef6a64bad5b2f039a15aa06ec4bcf06c232d0e9e466d82407'
  26. '830ff36681a661d77754fb7818bb13cc63da58a293d343a8d6847a586f00c6e0bfc3ffe51cdf882849e5083d4ddca52cdbdc1b3abc9b794a96f89ae7628f1fc2'
  27. '62e5f660a127f02d0a41852f426d52ea14d1043781b4b1b7390f2e424c57a88e75716615731cb9176dce6e6932e9646561425bd06a6833ce4c582e23b8d7ff59')
  28. prepare() {
  29. cd ogre-${pkgver}
  30. # install imgui to build dir
  31. mkdir -p build
  32. cp -r "$srcdir"/imgui-1.85 build/
  33. # remove nonfree references
  34. patch -Np1 -i $srcdir/libre.patch
  35. }
  36. build() {
  37. cd ogre-${pkgver}
  38. cmake \
  39. -Bbuild \
  40. -GNinja \
  41. -DCMAKE_INSTALL_PREFIX=/usr \
  42. -DOGRE_BUILD_TESTS=OFF \
  43. -DOGRE_BUILD_DEPENDENCIES=OFF \
  44. -DOGRE_INSTALL_SAMPLES=OFF \
  45. -DOGRE_INSTALL_DOCS=OFF \
  46. -DOGRE_INSTALL_SAMPLES_SOURCE=OFF \
  47. -DOGRE_BUILD_RENDERSYSTEM_GL=OFF \
  48. -DOGRE_BUILD_RENDERSYSTEM_GLES=OFF \
  49. -DOGRE_BUILD_RENDERSYSTEM_GLES2=OFF \
  50. -DOGRE_BUILD_SAMPLES=OFF
  51. ninja -C build
  52. }
  53. package() {
  54. cd ogre-${pkgver}
  55. DESTDIR="${pkgdir}" ninja -C build install
  56. install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  57. }
  58. # vim:set ts=2 sw=2 et: