summaryrefslogtreecommitdiff
path: root/user/glew/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-20 20:29:54 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-20 20:29:54 +0000
commite7e7003ef7dcc228be7da348caf2951735fda062 (patch)
treefb986a41e498cf32d59006eb8724ac2db55e5bc2 /user/glew/APKBUILD
parente10b674b2c32ea171eacd8a7e2932a21f278fd8e (diff)
downloadpackages-e7e7003ef7dcc228be7da348caf2951735fda062.tar.gz
packages-e7e7003ef7dcc228be7da348caf2951735fda062.tar.bz2
packages-e7e7003ef7dcc228be7da348caf2951735fda062.tar.xz
packages-e7e7003ef7dcc228be7da348caf2951735fda062.zip
user/glew: fix compatibility with Mesa 18.2+
Diffstat (limited to 'user/glew/APKBUILD')
-rw-r--r--user/glew/APKBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/user/glew/APKBUILD b/user/glew/APKBUILD
index e9ffea707..e5f6c1b18 100644
--- a/user/glew/APKBUILD
+++ b/user/glew/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=glew
pkgver=2.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="Cross-platform C/C++ extension loading library"
url="http://glew.sourceforge.net"
arch="all"
@@ -12,22 +12,23 @@ depends=""
depends_dev="libxi-dev libxmu-dev mesa-dev"
makedepends="$depends_dev glu-dev"
subpackages="$pkgname-dev $pkgname-doc"
-source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz"
+source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz
+ mesa-compat.patch
+ "
prepare() {
- cd "$builddir"
+ default_prepare
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"
+sha512sums="9a9b4d81482ccaac4b476c34ed537585ae754a82ebb51c3efa16d953c25cc3931be46ed2e49e79c730cd8afc6a1b78c97d52cd714044a339c3bc29734cd4d2ab glew-2.1.0.tgz
+6598a3d8263b8e49ca45cea00fed6b6921b6e75ff120d7f4f86b6e181dd9c8d56d52d1664a1693cf807dda130cfebd1a9a0bf8b2edc02552c1831486378adf1a mesa-compat.patch"