aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeglut/APKBUILD
blob: b4bc72b32e41c1825edbfe2ee41b033d9e86877f (plain)
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
# Contributor:
# Maintainer:
pkgname=freeglut
pkgver=3.2.0
pkgrel=0
pkgdesc="free reimplementation of OpenGL Utility Toolkit (GLUT) library"
url="http://freeglut.sourceforge.net/"
arch="all"
options="!check"  # No test suite.
license="Custom"
depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev glu-dev"
makedepends="$depends_dev cmake"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/freeglut/freeglut-$pkgver.tar.gz"

build() {
	cd "$builddir"
	cmake . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DFREEGLUT_BUILD_STATIC_LIBS=0
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -m644 -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING

	# Symlink glut.pc to freeglut.pc for backwards compatibility
	ln -s glut.pc "$pkgdir"/usr/lib/pkgconfig/freeglut.pc
}

sha512sums="78da1eaa845607ddd97a6744f3a97ff26cdb562fdf990695c8ac97a60d9d692496e4bf3672acfc522add60823c2f3bc7435e19e8041fbbb5d95851c0b641a818  freeglut-3.2.0.tar.gz"