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.
45 lines
1.2 KiB
45 lines
1.2 KiB
# Author: mosra <mosra@centrum.cz> |
|
pkgname=android-x86-magnum |
|
pkgver=dev |
|
pkgrel=1 |
|
pkgdesc="C++11/C++14 and OpenGL 2D/3D graphics engine (Android x86)" |
|
arch=('any') |
|
url="http://mosra.cz/blog/magnum.php" |
|
license=('MIT') |
|
depends=('android-x86-corrade') |
|
makedepends=('cmake' 'ninja' 'android-ndk 'corrade'') |
|
options=('!strip' '!buildflags') |
|
|
|
_rootdir=$startdir/../../ |
|
|
|
build() { |
|
if [ ! -d "$_rootdir/build-android-x86" ] ; then |
|
mkdir "$_rootdir/build-android-x86" |
|
cd "$_rootdir/build-android-x86" |
|
|
|
cmake .. \ |
|
-DCMAKE_MODULE_PATH="$_rootdir/toolchains/modules" \ |
|
-DCMAKE_TOOLCHAIN_FILE="$_rootdir/toolchains/generic/Android-x86.cmake" \ |
|
-DTARGET_GLES=ON \ |
|
-DTARGET_GLES2=ON \ |
|
-G Ninja |
|
fi |
|
|
|
cd "$_rootdir/build-android-x86" |
|
|
|
cmake .. \ |
|
-DCMAKE_BUILD_TYPE=Release \ |
|
-DCMAKE_INSTALL_PREFIX=/opt/android-ndk/platforms/android-19/arch-x86/usr \ |
|
-DWITH_MAGNUMFONT=ON \ |
|
-DWITH_OBJIMPORTER=ON \ |
|
-DWITH_TGAIMAGECONVERTER=ON \ |
|
-DWITH_TGAIMPORTER=ON \ |
|
-DWITH_ANDROIDAPPLICATION=ON \ |
|
-DWITH_EGLCONTEXT=ON |
|
ninja |
|
} |
|
|
|
package() { |
|
cd "$_rootdir/build-android-x86" |
|
DESTDIR="$pkgdir/" ninja install/strip |
|
}
|
|
|