2012-12-24 22:11:00 +11:00
|
|
|
# Description: The OpenGL Extension Wrangler Library.
|
2023-05-28 11:12:11 +02:00
|
|
|
# URL: https://glew.sourceforge.net/
|
2013-02-01 19:09:37 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2020-07-22 18:10:08 -05:00
|
|
|
# Depends on: glew mesa-32 xorg-libxi-32 xorg-libxmu-32
|
2012-12-24 22:11:00 +11:00
|
|
|
|
|
|
|
name=glew-32
|
2021-01-30 19:53:28 +11:00
|
|
|
version=2.2.0
|
2012-12-24 22:11:00 +11:00
|
|
|
release=1
|
2017-08-05 14:38:54 +10:00
|
|
|
source=(https://downloads.sourceforge.net/project/glew/glew/$version/glew-$version.tgz)
|
2012-12-24 22:11:00 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd glew-$version
|
|
|
|
|
|
|
|
make \
|
|
|
|
CC="${CC:-gcc}" \
|
|
|
|
LD="${CC:-gcc}" \
|
2013-07-25 18:18:59 +10:00
|
|
|
CFLAGS.EXTRA="$CFLAGS -fPIC" \
|
2012-12-24 22:11:00 +11:00
|
|
|
LDFLAGS.EXTRA="$LDFLAGS"
|
|
|
|
|
2016-08-07 20:15:38 +10:00
|
|
|
make \
|
|
|
|
LIBDIR="$PKG/usr/lib32" \
|
|
|
|
PKGDIR="$PKG/usr/lib32/pkgconfig" \
|
|
|
|
GLEW_DEST=$PKG/usr \
|
|
|
|
install
|
2012-12-24 22:11:00 +11:00
|
|
|
|
|
|
|
rm -r $PKG/usr/include
|
|
|
|
}
|