You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# Author: mosra <mosra@centrum.cz>
|
|
|
|
|
pkgname=magnum
|
|
|
|
|
pkgver=dev.release
|
|
|
|
|
pkgrel=1
|
|
|
|
|
pkgdesc="OpenGL graphics engine"
|
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
|
url="https://github.com/mosra/magnum"
|
|
|
|
|
license=('MIT')
|
|
|
|
|
depends=('corrade' 'glew' 'sdl-hg' 'freeglut')
|
|
|
|
|
makedepends=('cmake')
|
|
|
|
|
provides=('magnum-git')
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
mkdir -p "$startdir/build"
|
|
|
|
|
cd "$startdir/build/"
|
|
|
|
|
|
|
|
|
|
if [ "$CXX" = clang++ ] ; then
|
|
|
|
|
newcxxflags=$(echo $CXXFLAGS | sed s/--param=ssp-buffer-size=4//g)
|
|
|
|
|
export CXXFLAGS="$newcxxflags"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cmake .. \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DWITH_GLUTAPPLICATION=ON \
|
|
|
|
|
-DWITH_GLXAPPLICATION=ON \
|
|
|
|
|
-DWITH_SDL2APPLICATION=ON
|
|
|
|
|
-DBUILD_TESTS=TRUE
|
|
|
|
|
make
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
|
cd "$startdir/build"
|
|
|
|
|
ctest --output-on-failure
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd "$startdir/build"
|
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
|
}
|