aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mygui/APKBUILD
blob: e09f4f42f6d5f9cf0b9426792c0e5998e1cbd8c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=mygui
pkgver=3.4.0
pkgrel=1
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"