mirror of https://github.com/mosra/magnum.git
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.
37 lines
965 B
37 lines
965 B
|
14 years ago
|
# Author: mosra <mosra@centrum.cz>
|
||
|
|
pkgname=mingw32-magnum
|
||
|
|
pkgver=dev
|
||
|
|
pkgrel=1
|
||
|
13 years ago
|
pkgdesc="C++11 and OpenGL 2D/3D graphics engine (mingw32)"
|
||
|
14 years ago
|
arch=('any')
|
||
|
14 years ago
|
url="https://github.com/mosra/magnum"
|
||
|
13 years ago
|
license=('MIT')
|
||
|
13 years ago
|
depends=('mingw32-runtime' 'mingw32-corrade' 'mingw32-freeglut' 'mingw32-openal')
|
||
|
13 years ago
|
makedepends=('mingw32-gcc' 'cmake' 'ninja' 'corrade')
|
||
|
14 years ago
|
options=(!buildflags !strip)
|
||
|
|
|
||
|
|
build() {
|
||
|
|
mkdir -p "$startdir/build-win"
|
||
|
|
cd "$startdir/build-win/"
|
||
|
|
|
||
|
|
unset LDFLAGS
|
||
|
|
|
||
|
|
cmake .. \
|
||
|
|
-DCMAKE_TOOLCHAIN_FILE=../toolchains/archlinux/basic-mingw32.cmake \
|
||
|
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
13 years ago
|
-DCMAKE_INSTALL_PREFIX=/usr/i486-mingw32 \
|
||
|
13 years ago
|
-DWITH_GLUTAPPLICATION=ON \
|
||
|
|
-DWITH_MAGNUMFONT=ON \
|
||
|
|
-DWITH_MAGNUMFONTCONVERTER=ON \
|
||
|
|
-DWITH_TGAIMAGECONVERTER=ON \
|
||
|
|
-DWITH_TGAIMPORTER=ON \
|
||
|
13 years ago
|
-DWITH_WAVAUDIOIMPORTER=ON \
|
||
|
|
-G Ninja
|
||
|
|
ninja
|
||
|
14 years ago
|
}
|
||
|
|
|
||
|
|
package() {
|
||
|
|
cd "$startdir/build-win"
|
||
|
13 years ago
|
DESTDIR="$pkgdir/" ninja install
|
||
|
14 years ago
|
}
|