diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-23 06:10:53 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-23 06:10:53 -0500 |
commit | 3303f509dfe25f12cf153ac1b4af0e7f603cf61f (patch) | |
tree | c288d85c29bc7ae0e8e3ebef529fd787d463d144 | |
parent | db27ccadf9ce4a936dc291f33ca8a0bd0065a074 (diff) | |
download | packages-3303f509dfe25f12cf153ac1b4af0e7f603cf61f.tar.gz packages-3303f509dfe25f12cf153ac1b4af0e7f603cf61f.tar.bz2 packages-3303f509dfe25f12cf153ac1b4af0e7f603cf61f.tar.xz packages-3303f509dfe25f12cf153ac1b4af0e7f603cf61f.zip |
user/glew: pull in, take, fix, modernise
-rw-r--r-- | user/glew/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/user/glew/APKBUILD b/user/glew/APKBUILD new file mode 100644 index 000000000..e9ffea707 --- /dev/null +++ b/user/glew/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Carlo Landmeter +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=glew +pkgver=2.1.0 +pkgrel=1 +pkgdesc="Cross-platform C/C++ extension loading library" +url="http://glew.sourceforge.net" +arch="all" +options="!check" # No test suite. +license="BSD-3-Clause AND MIT" +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" + +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" |