aboutsummaryrefslogtreecommitdiffstats
path: root/main/glew/APKBUILD
blob: b68781a1d48158b0ddf9625cf9b829013c93aa87 (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glew
pkgver=2.1.0
pkgrel=0
pkgdesc="A cross-platform C/C++ extension loading library"
url="http://glew.sourceforge.net"
arch="all"
license="GPL"
options="!check"  # No test suite.
depends_dev="libxmu-dev libxi-dev mesa-dev glu-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz"
replaces="mesa-dev"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	sed -i 's|lib64|lib|' config/Makefile.linux
}

build() {
	cd "$builddir"
	make CFLAGS.EXTRA="$CFLAGS -fPIC"
}

package() {
	cd "$builddir"
	make GLEW_DEST="${pkgdir}/usr" install
	install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="9a9b4d81482ccaac4b476c34ed537585ae754a82ebb51c3efa16d953c25cc3931be46ed2e49e79c730cd8afc6a1b78c97d52cd714044a339c3bc29734cd4d2ab  glew-2.1.0.tgz"