mirror of https://github.com/mosra/magnum.git
1 changed files with 44 additions and 0 deletions
@ -0,0 +1,44 @@
|
||||
# Author: mosra <mosra@centrum.cz> |
||||
pkgname=emscripten-magnum |
||||
pkgver=dev.webgl2 |
||||
pkgrel=1 |
||||
pkgdesc="C++11/C++14 and OpenGL 2D/3D graphics engine (Emscripten WebGL 2.0)" |
||||
arch=('any') |
||||
url="http://mosra.cz/blog/magnum.php" |
||||
license=('MIT') |
||||
depends=('emscripten-corrade') |
||||
makedepends=('cmake' 'emscripten' 'corrade') |
||||
options=('!strip' '!buildflags') |
||||
|
||||
_rootdir=$startdir/../../ |
||||
|
||||
build() { |
||||
if [ ! -d "$_rootdir/build-emscripten-webgl2" ] ; then |
||||
mkdir "$_rootdir/build-emscripten-webgl2" |
||||
cd "$_rootdir/build-emscripten-webgl2" |
||||
|
||||
cmake .. \ |
||||
-DCMAKE_MODULE_PATH="$_rootdir/toolchains/modules" \ |
||||
-DCMAKE_TOOLCHAIN_FILE="$_rootdir/toolchains/generic/Emscripten.cmake" \ |
||||
-DCMAKE_PREFIX_PATH=/usr/lib/emscripten/system |
||||
fi |
||||
|
||||
cd "$_rootdir/build-emscripten-webgl2" |
||||
|
||||
cmake .. \ |
||||
-DCMAKE_BUILD_TYPE=Release \ |
||||
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \ |
||||
-DTARGET_GLES2=OFF \ |
||||
-DWITH_SDL2APPLICATION=ON \ |
||||
-DWITH_MAGNUMFONT=ON \ |
||||
-DWITH_OBJIMPORTER=ON \ |
||||
-DWITH_TGAIMAGECONVERTER=ON \ |
||||
-DWITH_TGAIMPORTER=ON \ |
||||
-DWITH_WAVAUDIOIMPORTER=ON |
||||
make |
||||
} |
||||
|
||||
package() { |
||||
cd "$_rootdir/build-emscripten-webgl2" |
||||
DESTDIR="$pkgdir/" make install |
||||
} |
||||
Loading…
Reference in new issue