2022-02-05 15:39:19 -05:00
|
|
|
# Description: OpenGL extension wrangler library, with wayland support
|
2022-06-13 09:46:54 -04:00
|
|
|
# URL: https://github.com/nigels-com/glew
|
2022-02-05 15:39:19 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2022-06-13 09:46:54 -04:00
|
|
|
# Depends on: egl-wayland xorg-libxi xorg-libxmu
|
2022-02-05 15:39:19 -05:00
|
|
|
|
2022-06-13 09:46:54 -04:00
|
|
|
name=glew-egl
|
2022-02-05 15:39:19 -05:00
|
|
|
version=2.2.0
|
|
|
|
release=1
|
2022-06-13 09:46:54 -04:00
|
|
|
source=(https://downloads.sourceforge.net/project/${name%-egl}/${name%-egl}/$version/${name%-egl}-$version.tgz
|
2022-02-05 15:39:19 -05:00
|
|
|
glew-2.0.0-install-headers.patch)
|
|
|
|
|
|
|
|
build() {
|
2022-06-16 12:06:44 -04:00
|
|
|
cd ${name%-egl}-$version
|
2022-02-05 15:39:19 -05:00
|
|
|
|
|
|
|
patch -p1 -i $SRC/glew-2.0.0-install-headers.patch
|
|
|
|
|
|
|
|
sed -i -e "s|lib64|lib|" config/Makefile.linux
|
|
|
|
sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile
|
|
|
|
|
|
|
|
make \
|
|
|
|
CC="${CC:-gcc}" \
|
|
|
|
LD="${CC:-gcc}" \
|
|
|
|
CFLAGS.EXTRA="$CFLAGS -fPIC" \
|
|
|
|
LDFLAGS.EXTRA="$LDFLAGS"
|
|
|
|
|
|
|
|
make GLEW_DEST="$PKG/usr" SYSTEM=linux-egl install
|
|
|
|
}
|