blob: 08a90ed8aaa424c6ad8e286058da69419bd5bb77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=ogre-legacy
pkgver=14.3.0
pkgrel=1
pkgdesc='Scene-oriented, flexible 3D engine written in C++ (Latest version with legacy features enabled for older games)'
arch=('x86_64')
url='http://www.ogre3d.org'
license=('custom:MIT')
depends=('freeimage' 'freetype2' 'libxaw' 'libxrandr' 'sdl2' 'glu' 'pugixml' 'zlib' 'nvidia-cg-toolkit')
makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'python' 'ninja' 'cppunit' 'swig')
conflicts=('ogre')
provides=('ogre')
install=ogre.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz")
optdepends=('python: python bindings')
sha512sums=('5834ef3c6b1757ff73d511de79212a6533fcb5eb42e34fe4c21c71f2a7f28a096f454e51131fdfe7b782dcef8575dd853780569ee72fe1fafdbc7b0ad1fd727f')
prepare() {
cd ogre-${pkgver}
sed -i 's|set(PYTHON_SITE_PACKAGES lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages/Ogre/)|set(PYTHON_SITE_PACKAGES lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages/Ogre/ CACHE FILEPATH "")|' Components/Python/CMakeLists.txt
}
build() {
cd ogre-${pkgver}
cmake \
-Bbuild \
-GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOGRE_RESOURCEMANAGER_STRICT=0 \
-DOGRE_BUILD_TESTS=OFF \
-DOGRE_NODELESS_POSITIONING=ON \
-DOGRE_BUILD_PLUGIN_CG=ON \
-DOGRE_BUILD_DEPENDENCIES=OFF \
-DPYTHON_SITE_PACKAGES=$(python -c "import sysconfig; print(sysconfig.get_paths()[\"platlib\"]+'/Ogre/')")
ninja -C build
ninja -C build OgreDoc
}
package() {
cd ogre-${pkgver}
DESTDIR="${pkgdir}" ninja -C build install
mkdir -p "${pkgdir}"/opt/ogre/samples
mv "${pkgdir}"/usr/bin/SampleBrowser "${pkgdir}"/opt/ogre/samples
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|