mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
ogre: update to 1.11.2
This commit is contained in:
parent
735a5787b7
commit
a0e93e522a
@ -1,73 +1,51 @@
|
|||||||
pkgbase=ogre
|
pkgbase=ogre
|
||||||
pkgname=('ogre' 'ogre-docs')
|
pkgname=('ogre' 'ogre-docs')
|
||||||
pkgver=1.10.8
|
pkgver=1.11.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A scene-oriented, flexible 3D engine written in C++"
|
pkgdesc="A scene-oriented, flexible 3D engine written in C++"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='http://www.ogre3d.org'
|
url='https://www.ogre3d.org'
|
||||||
license=('custom:MIT')
|
license=('custom:MIT')
|
||||||
depends=('boost-libs' 'freeimage' 'freetype2' 'libxaw' 'libxrandr'
|
depends=('boost-libs' 'freeimage' 'freetype2' 'libxaw' 'libxrandr' 'openexr'
|
||||||
'nvidia-cg-toolkit' 'mesa' 'zziplib' 'ois' 'glu')
|
'nvidia-cg-toolkit' 'mesa' 'zziplib' 'sdl2' 'glu')
|
||||||
makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mercurial')
|
makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'python3' 'swig' 'systemd' 'java-environment')
|
||||||
optdepends=('cppunit: unit testing'
|
|
||||||
'intel-tbb: better threading support'
|
|
||||||
'poco: portability'
|
|
||||||
'boost: for developing using ogre')
|
|
||||||
categories=('graphics')
|
categories=('graphics')
|
||||||
install=ogre.install
|
install=ogre.install
|
||||||
source=("hg+https://bitbucket.org/sinbad/ogre#tag=v${pkgver//./-}")
|
source=("https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz")
|
||||||
md5sums=('SKIP')
|
md5sums=('457fb2cde9ac715b01e7d049fffeea0a')
|
||||||
#source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_src_v${pkgver//./-}.tar.bz2")
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/${pkgbase}
|
cd ogre-${pkgver}
|
||||||
|
|
||||||
# get a clean build dir
|
|
||||||
[[ -d build ]] && rm -rf build
|
[[ -d build ]] && rm -rf build
|
||||||
mkdir build
|
mkdir build && cd build
|
||||||
cd build
|
|
||||||
|
export JAVA_HOME=/usr/lib/jvm/default
|
||||||
|
|
||||||
# generate CMake Makefile
|
|
||||||
CXXFLAGS+=' -Wno-deprecated-declarations'
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DOGRE_INSTALL_PLUGINS_HEADERS=TRUE \
|
-DOGRE_BUILD_DEPENDENCIES=FALSE \
|
||||||
-DOGRE_INSTALL_SAMPLES=TRUE \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DOGRE_INSTALL_DOCS=TRUE \
|
-DOGRE_BUILD_PLUGIN_FREEIMAGE=TRUE \
|
||||||
-DOGRE_INSTALL_MEDIA=TRUE \
|
-DOGRE_BUILD_PLUGIN_EXRCODEC=TRUE
|
||||||
-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release # set =Debug for debugging version
|
|
||||||
|
|
||||||
# compile
|
|
||||||
make
|
make
|
||||||
|
make OgreDoc
|
||||||
# generate docs
|
|
||||||
if [[ $(which dot) && $(which doxygen) ]]; then
|
|
||||||
make OgreDoc
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_ogre() {
|
package_ogre() {
|
||||||
optdepends=('ogre-docs: documentation')
|
optdepends=('cppunit: unit testing'
|
||||||
|
'python3: python bindings'
|
||||||
|
'java-environment: jni bindings'
|
||||||
|
'ogre-docs: documentation')
|
||||||
|
|
||||||
cd ${srcdir}/${pkgname}/build
|
cd ogre-${pkgver}/build
|
||||||
|
|
||||||
# install the bugger
|
|
||||||
make DESTDIR=${pkgdir} install
|
make DESTDIR=${pkgdir} install
|
||||||
|
|
||||||
# fix up samples
|
mv ${pkgdir}/usr/bin/SampleBrowser ${pkgdir}/usr/bin/OgreSampleBrowser
|
||||||
install -dm775 -o root -g users ${pkgdir}/opt/OGRE/samples/
|
install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
||||||
mv ${pkgdir}/usr/share/OGRE/*.cfg ${pkgdir}/opt/OGRE/samples/
|
|
||||||
mv ${pkgdir}/usr/bin/SampleBrowser ${pkgdir}/opt/OGRE/samples/
|
|
||||||
|
|
||||||
# make sample launcher
|
|
||||||
echo "#!/bin/bash" > ${pkgdir}/usr/bin/OgreSampleBrowser
|
|
||||||
echo "cd /opt/OGRE/samples && ./SampleBrowser" >> ${pkgdir}/usr/bin/OgreSampleBrowser
|
|
||||||
chmod +x ${pkgdir}/usr/bin/OgreSampleBrowser
|
|
||||||
|
|
||||||
# install license
|
|
||||||
install -Dm644 ../COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
|
|
||||||
|
|
||||||
# move docs out of this package
|
# move docs out of this package
|
||||||
mv ${pkgdir}/usr/share/OGRE/docs ${srcdir}/docs
|
mv ${pkgdir}/usr/share/OGRE/docs ${srcdir}/docs
|
||||||
}
|
}
|
||||||
@ -75,7 +53,8 @@ package_ogre() {
|
|||||||
package_ogre-docs() {
|
package_ogre-docs() {
|
||||||
pkgdesc="Documentation for ogre"
|
pkgdesc="Documentation for ogre"
|
||||||
depends=()
|
depends=()
|
||||||
cd ${srcdir}/${pkgbase}/build
|
|
||||||
|
cd ogre-${pkgver}/build
|
||||||
|
|
||||||
# move docs into this package
|
# move docs into this package
|
||||||
install -dm755 ${pkgdir}/usr/share/doc
|
install -dm755 ${pkgdir}/usr/share/doc
|
||||||
@ -84,6 +63,5 @@ package_ogre-docs() {
|
|||||||
# symlink for docs
|
# symlink for docs
|
||||||
install -dm755 ${pkgdir}/usr/share/OGRE/
|
install -dm755 ${pkgdir}/usr/share/OGRE/
|
||||||
cd ${pkgdir}/usr/share
|
cd ${pkgdir}/usr/share
|
||||||
ln -s doc/OGRE/ OGRE/docs
|
ln -s /usr/share/doc/OGRE/ OGRE/docs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user