summaryrefslogtreecommitdiff
path: root/user/freeglut/APKBUILD
blob: fa130b8d148368adab5f25cae1b49f05d5b3099f (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
# Contributor: Ariadne Conill <ariadne@dereferenced.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=freeglut
pkgver=3.2.2
pkgrel=0
pkgdesc="Free reimplementation of OpenGL Utility Toolkit (GLUT) library"
url="https://freeglut.sourceforge.net/"
arch="all"
options="!check"  # No test suite.
license="X11"
depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev glu-dev"
makedepends="$depends_dev cmake"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	cmake . \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DFREEGLUT_BUILD_STATIC_LIBS=0 \
		.
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="190231951d314f854c244bd27f7c20488403bd0eecffc342097a2e3d1621cec87f6c209a77b4c153aabcf44697b4070227930e295ab74fb88953cbbf94fc81d9  freeglut-3.2.2.tar.gz"