diff options
Diffstat (limited to 'main/glew')
-rw-r--r-- | main/glew/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/main/glew/APKBUILD b/main/glew/APKBUILD new file mode 100644 index 0000000000..26511a6e2c --- /dev/null +++ b/main/glew/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Carlo Landmeter +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=glew +pkgver=1.6.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" +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" || return 1 +} + +package() { + cd "$_builddir" + make GLEW_DEST="${pkgdir}/usr" install + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +md5sums="7dfbb444b5a4e125bc5dba0aef403082 glew-1.6.0.tgz" |