28 lines
612 B
Plaintext
28 lines
612 B
Plaintext
# Description: The OpenGL Extension Wrangler Library.
|
|
# URL: https://glew.sourceforge.net/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: glew mesa-32 xorg-libxi-32 xorg-libxmu-32
|
|
|
|
name=glew-32
|
|
version=2.2.0
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/glew/glew/$version/glew-$version.tgz)
|
|
|
|
build() {
|
|
cd glew-$version
|
|
|
|
make \
|
|
CC="${CC:-gcc}" \
|
|
LD="${CC:-gcc}" \
|
|
CFLAGS.EXTRA="$CFLAGS -fPIC" \
|
|
LDFLAGS.EXTRA="$LDFLAGS"
|
|
|
|
make \
|
|
LIBDIR="$PKG/usr/lib32" \
|
|
PKGDIR="$PKG/usr/lib32/pkgconfig" \
|
|
GLEW_DEST=$PKG/usr \
|
|
install
|
|
|
|
rm -r $PKG/usr/include
|
|
}
|