1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Mosra <mosra@centrum.cz>
7 pkgdesc='C++11/C++14 graphics middleware for games and data visualization'
9 url='https://magnum.graphics'
11 depends=('corrade>=2020.06' glfw openal sdl2 vulkan-icd-loader)
12 makedepends=(cmake git)
13 optdepends=('magnum-plugins: import and export features')
14 source=("git+https://github.com/mosra/magnum#commit=fac6f4da261930c7035bf51f66091e350905720b") # tag: v2020.06
18 # Fix build with recent cmake
19 sed -e '/CONFIG/d' -i $pkgname/modules/FindOpenAL.cmake
26 -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects -Wfatal-errors" \
27 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DWITH_ANYAUDIOIMPORTER=ON \
30 -DWITH_ANYIMAGECONVERTER=ON \
31 -DWITH_ANYIMAGEIMPORTER=ON \
32 -DWITH_ANYSCENEIMPORTER=ON \
34 -DWITH_DISTANCEFIELDCONVERTER=ON \
35 -DWITH_GLXAPPLICATION=ON \
36 -DWITH_GLXCONTEXT=ON \
37 -DWITH_IMAGECONVERTER=ON \
38 -DWITH_MAGNUMFONT=ON \
39 -DWITH_MAGNUMFONTCONVERTER=ON \
40 -DWITH_OBJIMPORTER=ON \
41 -DWITH_FONTCONVERTER=ON \
43 -DWITH_GLFWAPPLICATION=ON \
44 -DWITH_SDL2APPLICATION=ON \
45 -DWITH_TGAIMAGECONVERTER=ON \
46 -DWITH_TGAIMPORTER=ON \
48 -DWITH_WAVAUDIOIMPORTER=ON \
49 -DWITH_WINDOWLESSGLXAPPLICATION=ON
54 make DESTDIR="$pkgdir" -C build install
55 install -Dm644 $pkgname/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"