blob: c49ba27f6504ea873d669ae03d0d53330da6b5c7 (
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
37
|
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glew
pkgver=1.12.0
pkgrel=0
pkgdesc="A cross-platform C/C++ extension loading library"
url="http://glew.sourceforge.net"
arch="all"
license="GPL"
depends=
depends_dev="libxmu-dev libxi-dev mesa-dev glu-dev"
makedepends="$depends_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="01246c7ecd135d99be031aa63f86dca1 glew-1.12.0.tgz"
sha256sums="af58103f4824b443e7fa4ed3af593b8edac6f3a7be3b30911edbc7344f48e4bf glew-1.12.0.tgz"
sha512sums="9af4db32f6ada61f578c903fe1674f98fcaba2fb6fafced2cea2b1d82769427283d940b095c69237860357dcb1629b5227bb74a392b80da41f7be6288cbda0ae glew-1.12.0.tgz"
|