blob: 41b0078ff15edc8c2054dc63af1f73f9137af682 (
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
52
53
54
55
|
# Maintainer: Oystein Sture <oysstu at protonmail com>
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=ogre-next2
pkgver=2.3.3
pkgrel=1
pkgdesc='Scene-oriented, flexible 3D engine written in C++'
arch=('x86_64')
url='http://www.ogre3d.org'
license=('MIT')
depends=('freetype2' 'libxaw' 'libxrandr' 'rapidjson'
'zziplib' 'sdl2' 'glu' 'tinyxml' 'zlib' 'openvr')
makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'ninja' 'cppunit'
'vulkan-headers' 'shaderc')
provides=("ogre-next=${pkgver}")
conflicts=("ogre-next")
install=ogre-next2.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/OGRECave/ogre-next/archive/v${pkgver}.tar.gz"
"mesa-gl3.patch::https://github.com/OGRECave/ogre-next/pull/469.patch")
sha512sums=('52ed2d2a3375c0d35f0dc695b986514484ad1d47966c5c18351d3b09913123b2487b9729738c6b8b1219c1a992a8c8509a2303e097a6eb26497e152a14d48830'
'f0d772bebdac21a4b513f399a5cc1eb64401f00b669f3f872db2f8255e58a5ebf7390e0a850516aff48e6786215a48275df275b7a8c6a4c8928a37a4f0df4b5c')
prepare() {
cd ogre-next-${pkgver}
patch -p1 < ${srcdir}/mesa-gl3.patch
}
build() {
cd ogre-next-${pkgver}
cmake \
-Bbuild \
-GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOGRE_USE_NEW_PROJECT_NAME=ON \
-DOGRE_CONFIG_ENABLE_JSON=ON \
-DOGRE_CONFIG_THREADS=1 \
-DOGRE_CONFIG_THREAD_PROVIDER="std" \
-DOGRE_BUILD_COMPONENT_PLANAR_REFLECTIONS=ON \
-DOGRE_BUILD_COMPONENT_PROPERTY=OFF \
-DOGRE_BUILD_COMPONENT_SCENE_FORMAT=ON \
-DOGRE_BUILD_COMPONENT_HLMS_UNLIT=ON \
-DOGRE_BUILD_TESTS=OFF \
-DOGRE_INSTALL_SAMPLES_SOURCE=OFF \
-DOGRE_BUILD_SAMPLES2=OFF
ninja -C build
}
package() {
cd ogre-next-${pkgver}
DESTDIR="${pkgdir}" ninja -C build install
install -Dm644 Docs/License.html "${pkgdir}"/usr/share/licenses/${pkgname}/License.html
}
# vim:set ts=2 sw=2 et:
|