summaryrefslogtreecommitdiffstats
path: root/main/glew/APKBUILD
blob: 7ee133b8b347768de8e6c108151137a17f6d4cd5 (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: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glew
pkgver=1.10.0
pkgrel=0
pkgdesc="A cross-platform C/C++ extension loading library"
url="http://glew.sourceforge.net"
arch="all"
license="GPL"
depends=
makedepends="libxmu-dev libxi-dev mesa-dev glu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://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 || return 1
}

build() {
	cd "$_builddir"
	make CFLAGS.EXTRA="$CFLAGS -fPIC" || return 1
}

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

md5sums="2f09e5e6cb1b9f3611bcac79bc9c2d5d  glew-1.10.0.tgz"
sha256sums="99c41320b63f6860869b5fb9af9a1854b15582796c64ee3dfd7096dc0c89f307  glew-1.10.0.tgz"
sha512sums="0c998fda9fe01c9296a3453966c0449c9968f4f5f989065ca65f0da3830ae8d805699d0ee0362c3b18765420222ba18842b9db20986212afceb36c971ae1bdca  glew-1.10.0.tgz"