# Contributor: Carlo Landmeter # Maintainer: Natanael Copa <ncopa@alpinelinux.org> setvar pkgname = 'glew' setvar pkgver = '2.0.0' setvar pkgrel = '0' setvar pkgdesc = ""A cross-platform C/C++ extension loading library"" setvar url = ""http://glew.sourceforge.net"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends_dev = ""libxmu-dev libxi-dev mesa-dev glu-dev"" setvar makedepends = "$depends_dev" setvar subpackages = ""$pkgname-dev $pkgname-doc"" setvar source = ""http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz"" setvar replaces = ""mesa-dev"" setvar builddir = ""$srcdir"/$pkgname-$pkgver" proc prepare { cd $builddir sed -i 's|lib64|lib|' config/Makefile.linux } proc build { cd $builddir make CFLAGS.EXTRA="$CFLAGS -fPIC" } proc package { cd $builddir make GLEW_DEST="${pkgdir}/usr" install install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } setvar sha512sums = ""e9bcd5f19a4495ce6511dfd76e64b4e4d958603c513ee9063eb9fe24fc6e0413f168620661230f1baef558f2f907cef7fe7ab2bdf957a6f7bda5fe96e9319c6a glew-2.0.0.tgz""