aboutsummaryrefslogtreecommitdiffstats
path: root/community/mygui/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mygui/APKBUILD')
-rw-r--r--community/mygui/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/mygui/APKBUILD b/community/mygui/APKBUILD
new file mode 100644
index 0000000000..ec7625d8fa
--- /dev/null
+++ b/community/mygui/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Clayton Craft <clayton@craftyguy.net>
+# Maintainer: Clayton Craft <clayton@craftyguy.net>
+pkgname=mygui
+pkgver=3.4.0
+pkgrel=2
+pkgdesc="A multilayer and overlappable GUI System"
+# Note: only tested on the following archs, may work on others too but not
+# adding them until this has been confirmed
+arch="x86_64 aarch64"
+url="http://mygui.info/"
+license="MIT"
+makedepends="boost-dev cmake oxygen graphviz ttf-dejavu doxygen freetype-dev ois-dev glu-dev"
+source="https://github.com/MyGUI/mygui/archive/MyGUI$pkgver.tar.gz"
+subpackages="$pkgname-dev"
+# Package includes unit tests but they require glx/acceleration
+options="!check"
+builddir="$srcdir/mygui-MyGUI$pkgver"
+
+build() {
+ sed -i "71 i set(MYGUI_GCC_VISIBILITY_FLAGS "")" CMakeLists.txt
+ sed -i "s/\$OIS_LIBRARIES/$OIS_LIBRARIES boost_system/g" Common/CMakeLists.txt
+
+ cmake -B build . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMYGUI_INSTALL_SAMPLES=TRUE \
+ -DMYGUI_INSTALL_TOOLS=TRUE \
+ -DMYGUI_INSTALL_DOCS=TRUE \
+ -DMYGUI_INSTALL_MEDIA=TRUE \
+ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype3/ \
+ -DMYGUI_BUILD_DEMOS=FALSE \
+ -DMYGUI_BUILD_TOOLS=FALSE \
+ -DCMAKE_BUILD_TYPE=None \
+ -DMYGUI_RENDERSYSTEM=7 \
+ -DBUILD_SHARED_LIBS=TRUE
+
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+sha512sums="3f560fd9c7e5b514da40e41c7753dc20649f80b763f5ee20afc9627df3be14242ea833eff09eac16b9e88b1c9fbed7c09def0c5068c832e710c247191fb53487 MyGUI3.4.0.tar.gz"