add glewmx
This commit is contained in:
commit
ea7f5b3c5e
2 changed files with 62 additions and 0 deletions
16
.SRCINFO
Normal file
16
.SRCINFO
Normal file
|
@ -0,0 +1,16 @@
|
|||
pkgbase = glewmx
|
||||
pkgdesc = The OpenGL Extension Wrangler MX
|
||||
pkgver = 1.13.0
|
||||
pkgrel = 1
|
||||
url = http://launchpad.net/ubuntu/+source/glewmx
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
depends = libxmu
|
||||
depends = libxi
|
||||
depends = glu
|
||||
source = http://launchpad.net/ubuntu/+archive/primary/+files/glewmx_1.13.0.orig.tar.gz
|
||||
sha1sums = d5b1c499f429aa91c466193b4e8ea94a84019e37
|
||||
|
||||
pkgname = glewmx
|
||||
|
46
PKGBUILD
Executable file
46
PKGBUILD
Executable file
|
@ -0,0 +1,46 @@
|
|||
# $Id: PKGBUILD 273106 2016-08-05 12:19:53Z andyrtr $
|
||||
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
||||
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
|
||||
# Contributor: SleepyDog
|
||||
|
||||
pkgname=glewmx
|
||||
pkgver=1.13.0
|
||||
pkgrel=1
|
||||
pkgdesc="The OpenGL Extension Wrangler MX"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://launchpad.net/ubuntu/+source/glewmx"
|
||||
license=('GPL')
|
||||
depends=('libxmu' 'libxi' 'glu')
|
||||
source=(http://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz)
|
||||
sha1sums=('d5b1c499f429aa91c466193b4e8ea94a84019e37')
|
||||
|
||||
build() {
|
||||
|
||||
cd glew-${pkgver}
|
||||
|
||||
# move include folder to subfolder 'glew-1.13.0'
|
||||
sed -i 's:$(GLEW_DEST)/include/GL:$(GLEW_DEST)/include/glew-1.13.0/GL:' Makefile
|
||||
|
||||
sed -i 's|lib64|lib|' config/Makefile.linux
|
||||
sed -i '/^.PHONY: .*\.pc$/d' Makefile
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
cd glew-${pkgver}
|
||||
|
||||
# update glewmx include path to reflect previous changes (see build comments)
|
||||
msg update glewmx.pc
|
||||
sed -i 's:includedir=${prefix}/include:includedir=${prefix}/include/glew-1.13.0:' glewmx.pc
|
||||
|
||||
make GLEW_DEST="${pkgdir}/usr" install.all
|
||||
|
||||
rm -R ${pkgdir}/usr/bin
|
||||
rm ${pkgdir}/usr/lib/{libGLEW.so,libGLEW.a}
|
||||
rm ${pkgdir}/usr/lib/pkgconfig/glew.pc
|
||||
|
||||
chmod 0755 "${pkgdir}"/usr/lib/libGLEW*.so.${pkgver}
|
||||
|
||||
}
|
Loading…
Reference in a new issue