blob: a662e0fc09803e11a3200fd20cc74d9754e3c998 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgbase=ogre
pkgname=('ogre')
pkgver=1.10.11
pkgrel=2.parabola1
pkgdesc='Scene-oriented, flexible 3D engine written in C++, without nonfree software support and files'
arch=('i686' 'x86_64' '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')
mksource=("https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz")
source=(https://repo.parabola.nu/other/$pkgbase-libre/$pkgbase-libre-$pkgver.tar.xz
libre.patch)
mksha512sums=('2dfedd6f0a0de1a8c687c001439138b233200ca11e5c9940debf43d8a0380ca6472e0b5f4d599f0e22ca2049d0a5d34066ef41b6bc4912130694fa5d851fc900')
sha512sums=('fee28931a13f5058289a45d5477bd56243e9606cdda80b2a38c387d2603983c4577c1c92101690a7291a09b3753e84aca491daf3ebe1f387915d0aff48083686'
'81e3997c5bad64d8bae511222d8ab3766699c0923e9303640925525908ee2c19dfb37549cc02bc3e172ea248c0c01c0a58bdcc20d545980bf93b15e02ceb514c')
mksource() {
cd ${pkgbase}-${pkgver}
# remove nonfree files
# rm -v RenderSystems/GL/include/GL/{gl{,ext},wglext,glx{tokens,ext}}.h
rm -v RenderSystems/GL/include/GL/gl.h
rm -rv Samples/Media/materials/textures/nvidia
rm -v Samples/Media/packs/chiropteraDM.{pk3,txt}
}
prepare() {
cd ${pkgbase}-${pkgver}
# remove nonfree references
rm -v CMake/Templates/quakemap.cfg.in
patch -Np1 -i $srcdir/libre.patch
# add symlinks to point to mesa header files
# cd RenderSystems/GL/include/GL
# ln -sv /usr/include/GL/gl.h gl.h
# ln -sv /usr/include/GL/glext.h glext.h
# ln -sv /usr/include/GL/wglext.h wglext.h
# ln -sv /usr/include/GL/glxtokens.h glxtokens.h
# ln -sv /usr/include/GL/glxext.h glxext.h
}
build() {
cd ${pkgbase}-${pkgver}
# get a clean build dir
[[ -d build ]] && rm -vrf build
mkdir -v build && cd build
# SAMPLES, SAMPLES_SOURCE and TESTS are nonfree
cmake .. \
-DCMAKE_BUILD_TYPE=Release\
-DCMAKE_INSTALL_PREFIX=/usr\
-DCPACK_PACKAGE_DESCRIPTION_SUMMARY='Libre 3D Graphics Engine'\
-D${pkgbase^^}_BUILD_COMPONENT_PAGING=TRUE\
-D${pkgbase^^}_BUILD_COMPONENT_PROPERTY=TRUE\
-D${pkgbase^^}_BUILD_COMPONENT_PYTHON=TRUE \
-D${pkgbase^^}_BUILD_COMPONENT_RTSHADERSYSTEM=TRUE\
-D${pkgbase^^}_BUILD_COMPONENT_TERRAIN=TRUE\
-D${pkgbase^^}_BUILD_DEPENDENCIES=FALSE \
-D${pkgbase^^}_BUILD_PLATFORM_NACL=FALSE\
-D${pkgbase^^}_BUILD_PLUGIN_BSP=TRUE\
-D${pkgbase^^}_BUILD_PLUGIN_OCTREE=TRUE\
-D${pkgbase^^}_BUILD_PLUGIN_PCZ=TRUE\
-D${pkgbase^^}_BUILD_PLUGIN_PFX=TRUE\
-D${pkgbase^^}_BUILD_RENDERSYSTEM_GL=FALSE\
-D${pkgbase^^}_BUILD_RENDERSYSTEM_GLES=FALSE\
-D${pkgbase^^}_BUILD_RENDERSYSTEM_GLES2=FALSE\
-D${pkgbase^^}_BUILD_RTSHADERSYSTEM_CORE_SHADERS=TRUE\
-D${pkgbase^^}_BUILD_RTSHADERSYSTEM_EXT_SHADERS=TRUE\
-D${pkgbase^^}_BUILD_SAMPLES=FALSE\
-D${pkgbase^^}_BUILD_TESTS=FALSE\
-D${pkgbase^^}_BUILD_TOOLS=TRUE\
-D${pkgbase^^}_CONFIG_ENABLE_DDS=TRUE\
-D${pkgbase^^}_CONFIG_ENABLE_FREEIMAGE=TRUE\
-D${pkgbase^^}_CONFIG_ENABLE_GLES2_GLSL_OPTIMISER=TRUE\
-D${pkgbase^^}_CONFIG_ENABLE_PVRTC=TRUE\
-D${pkgbase^^}_CONFIG_ENABLE_VIEWPORT_ORIENTATIONMODE=TRUE\
-D${pkgbase^^}_CONFIG_ENABLE_ZIP=TRUE\
-D${pkgbase^^}_CONFIG_NEW_COMPILERS=TRUE\
-D${pkgbase^^}_CONFIG_THREAD_PROVIDER=boost\
-D${pkgbase^^}_INSTALL_DOCS=FALSE\
-D${pkgbase^^}_INSTALL_SAMPLES=FALSE\
-D${pkgbase^^}_INSTALL_SAMPLES_SOURCE=FALSE\
-D${pkgbase^^}_INSTALL_TOOLS=TRUE\
-D${pkgbase^^}_LIB_DIRECTORY=lib\
-D${pkgbase^^}_PROFILING=TRUE\
-D${pkgbase^^}_USE_BOOST=TRUE
# make V=0
make
}
package_ogre() {
optdepends=('cppunit: unit testing'
'intel-tbb: better threading support'
'poco: portability'
'python: python bindings'
'boost: for developing using ogre'
'ogre-docs: documentation')
conflicts=(${pkgbase}-libre)
replaces=(${pkgbase}-libre)
cd ${pkgbase}-${pkgver}/build
make DESTDIR=$pkgdir install
# install license
install -vDm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et:
|