summaryrefslogblamecommitdiff
path: root/user/glew/APKBUILD
blob: 9ff8e9090d6935eabb69b0799a0ed6ffce0cdfe8 (plain) (tree)
1
2
3
4
5
                                                     

                                                 

            








                                                        
                                                                        

           
                       



                                                   



                                         



                                                                                  
                                                                                                                                                             
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=glew
pkgver=2.2.0
pkgrel=0
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() {
	default_prepare
	sed -i 's|lib64|lib|' config/Makefile.linux
}

build() {
	make CFLAGS.EXTRA="$CFLAGS -fPIC"
}

package() {
	make GLEW_DEST="${pkgdir}/usr" install
	install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="57453646635609d54f62fb32a080b82b601fd471fcfd26e109f479b3fef6dfbc24b83f4ba62916d07d62cd06d1409ad7aa19bc1cd7cf3639c103c815b8be31d1  glew-2.2.0.tgz"