summaryrefslogtreecommitdiff
path: root/libre/ogre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/ogre/PKGBUILD')
-rw-r--r--libre/ogre/PKGBUILD85
1 files changed, 38 insertions, 47 deletions
diff --git a/libre/ogre/PKGBUILD b/libre/ogre/PKGBUILD
index 17d34c389..2ae2e6c2a 100644
--- a/libre/ogre/PKGBUILD
+++ b/libre/ogre/PKGBUILD
@@ -1,5 +1,4 @@
-# $Id$
-# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Maintainer (Arch): Sven-Hendrik Haase <svenstaro@archlinux.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Márcio Silva <coadde@hyperbola.info>
@@ -7,73 +6,65 @@
# - not building ogre-docs
# - removed nonfree samples and tests
# - removed nonfree files and references
+# - added imgui.tar.gz to sources instead of downloading at build time
-pkgbase=ogre
-pkgname=('ogre')
-pkgver=1.10.11
-pkgrel=3.parabola1
-pkgdesc='Scene-oriented, flexible 3D engine written in C++, without nonfree software support and files'
-arch=('x86_64' 'i686' 'armv7h')
+pkgname=ogre
+pkgver=13.2.4
+pkgrel=1
+pkgrel+=.parabola1
+pkgdesc='Scene-oriented, flexible 3D engine written in C++'
+pkgdesc+=', without nonfree software support and files'
+arch=('x86_64')
+arch+=('i686' 'armv7h')
url='http://www.ogre3d.org'
license=('custom:MIT')
-depends=('boost-libs' 'freeimage' 'freetype2' 'libxaw' 'libxrandr'
- 'zziplib' 'sdl2' 'glu' 'tinyxml')
-makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'mercurial' 'python' 'swig' 'systemd')
+depends=('freeimage' 'freetype2' 'libxaw' 'libxrandr' 'sdl2' 'glu' 'pugixml' 'zlib')
+makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'python' 'ninja' 'cppunit')
install=ogre.install
-source=("https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz"
- libre.patch)
-sha512sums=('2dfedd6f0a0de1a8c687c001439138b233200ca11e5c9940debf43d8a0380ca6472e0b5f4d599f0e22ca2049d0a5d34066ef41b6bc4912130694fa5d851fc900'
- '81e3997c5bad64d8bae511222d8ab3766699c0923e9303640925525908ee2c19dfb37549cc02bc3e172ea248c0c01c0a58bdcc20d545980bf93b15e02ceb514c')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz")
+source+=("imgui-1.85.tar.gz::https://github.com/ocornut/imgui/archive/v1.85.tar.gz"
+ libre.patch)
+sha512sums=('6a07f919fb050d6863fcb2b6ab7aea54b279a1cc98377a5b8c9d773c74d7126a78ce0c23c1c4f62ef6a64bad5b2f039a15aa06ec4bcf06c232d0e9e466d82407'
+ '830ff36681a661d77754fb7818bb13cc63da58a293d343a8d6847a586f00c6e0bfc3ffe51cdf882849e5083d4ddca52cdbdc1b3abc9b794a96f89ae7628f1fc2'
+ '62e5f660a127f02d0a41852f426d52ea14d1043781b4b1b7390f2e424c57a88e75716615731cb9176dce6e6932e9646561425bd06a6833ce4c582e23b8d7ff59')
prepare() {
cd ogre-${pkgver}
- # remove nonfree files
- rm -v RenderSystems/GL/include/GL/gl.h
- rm -rv Samples/Media/materials/textures/nvidia
- rm -v Samples/Media/packs/chiropteraDM.{pk3,txt}
+ # install imgui to build dir
+ mkdir -p build
+ cp -r "$srcdir"/imgui-1.85 build/
# remove nonfree references
- rm -v CMake/Templates/quakemap.cfg.in
patch -Np1 -i $srcdir/libre.patch
}
build() {
cd ogre-${pkgver}
- [[ -d build ]] && rm -rf build
- mkdir build && cd build
-
- cmake .. \
+ cmake \
+ -Bbuild \
+ -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DOGRE_INSTALL_SAMPLES=FALSE\
- -DOGRE_INSTALL_DOCS=FALSE\
- -DOGRE_INSTALL_SAMPLES_SOURCE=FALSE\
- -DOGRE_BUILD_DEPENDENCIES=FALSE \
- -DOGRE_BUILD_COMPONENT_PYTHON=TRUE \
- -DCMAKE_BUILD_TYPE=Release \
- -DOGRE_BUILD_RENDERSYSTEM_GL=FALSE\
- -DOGRE_BUILD_RENDERSYSTEM_GLES=FALSE\
- -DOGRE_BUILD_RENDERSYSTEM_GLES2=FALSE\
- -DOGRE_BUILD_SAMPLES=FALSE\
- -DOGRE_BUILD_TESTS=FALSE
+ -DOGRE_BUILD_TESTS=OFF \
+ -DOGRE_BUILD_DEPENDENCIES=OFF \
+ -DOGRE_INSTALL_SAMPLES=OFF \
+ -DOGRE_INSTALL_DOCS=OFF \
+ -DOGRE_INSTALL_SAMPLES_SOURCE=OFF \
+ -DOGRE_BUILD_RENDERSYSTEM_GL=OFF \
+ -DOGRE_BUILD_RENDERSYSTEM_GLES=OFF \
+ -DOGRE_BUILD_RENDERSYSTEM_GLES2=OFF \
+ -DOGRE_BUILD_SAMPLES=OFF
- make
+ ninja -C build
}
-package_ogre() {
- optdepends=('cppunit: unit testing'
- 'intel-tbb: better threading support'
- 'poco: portability'
- 'python: python bindings'
- 'boost: for developing using ogre'
- 'ogre-docs: documentation')
-
- cd ogre-${pkgver}/build
+package() {
+ cd ogre-${pkgver}
- make DESTDIR=${pkgdir} install
+ DESTDIR="${pkgdir}" ninja -C build install
- install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et: