aboutsummaryrefslogtreecommitdiffstats
path: root/main/glew/APKBUILD
blob: 8dd3ee9da5ad101dc1c96f55fb4e08eb5a2c3797 (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.11.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="f6d72c7426a5f66580ad09e50816450a  glew-1.11.0.tgz"
sha256sums="69bbce306ac281c4fa806a7a7d02c0596281a2d8f9d70690e98126f23ba513d6  glew-1.11.0.tgz"
sha512sums="ab7fa5027b069adb7ce2f0ec9dc4e7f30d852e4212c68759873f060e32cc2be04cef66748a7e8696240ed6e3efbf4f0a2aa94640723facf83123c4cc6d955308  glew-1.11.0.tgz"