57 lines
1.6 KiB
Bash
57 lines
1.6 KiB
Bash
# Template file for 'ogre'
|
|
pkgname=libogre
|
|
version=1.9.0
|
|
revision=9
|
|
build_style=cmake
|
|
_hgrev=108ab0bcc69603dba32c0ffd4bbbc39051f421c9
|
|
configure_args="-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DOGRE_INSTALL_PLUGINS_HEADERS=TRUE \
|
|
-DOGRE_INSTALL_SAMPLES=TRUE \
|
|
-DOGRE_INSTALL_DOCS=TRUE \
|
|
-DOGRE_INSTALL_MEDIA=TRUE \
|
|
-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
|
|
-DCMAKE_BUILD_TYPE=Release"
|
|
hostmakedepends="pkg-config graphviz doxygen dejavu-fonts-ttf"
|
|
makedepends="boost-devel freetype-devel libXaw-devel libXrandr-devel
|
|
MesaLib-devel zziplib-devel libcppunit-devel glu-devel libatomic-devel
|
|
freeimage-devel"
|
|
short_desc="Scene-oriented, flexible 3D engine"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
homepage="http://www.ogre3d.org"
|
|
license="MIT"
|
|
distfiles="https://bitbucket.org/sinbad/ogre/get/${_hgrev}.tar.gz"
|
|
checksum=e14c80e7d6e3f6af8176f79009db6f7c6b5a32d951da6ecb745f505e13889bc6
|
|
wrksrc="sinbad-ogre-${_hgrev:0:12}"
|
|
make_build_target="all OgreDoc"
|
|
|
|
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
|
|
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) broken="https://build.voidlinux.eu/builders/aarch64_builder/builds/3248/steps/shell_3/logs/stdio";;
|
|
esac
|
|
|
|
post_install() {
|
|
vmkdir /usr/share/doc
|
|
vcopy build/Docs /usr/share/doc/libogre
|
|
}
|
|
|
|
libogre-devel_package() {
|
|
depends="libogre>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libogre-doc_package() {
|
|
depends="libogre>=${version}_${revision}"
|
|
short_desc+=" - documentation"
|
|
pkg_install() {
|
|
vmove /usr/share/doc/libogre
|
|
}
|
|
}
|