APP=glew
VERSION=2.1.0
BUILD=1sml
HOMEPAGE="https://github.com/nigels-com/glew"
DOWNLOAD="https://github.com/nigels-com/glew/archive/refs/tags/glew-2.1.0.tar.gz"
DESC="The OpenGL Extension Wrangler Library"
REQUIRES="mesa"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  # Remove the DOS linefeeds from config.guess
  TEMPFILE=$(mktemp)
  fromdos < config/config.guess ; rm -f $TEMPFILE

  make install.all GLEW_DEST="$PKG" LIBDIR="$PKG"/lib

  cp LICENSE.txt $PKGDOCS/
  removestaticlibs

  mkfinalpkg
}

SHA512SUMS="
b448d10c330373497c5cdc628194de28a6d7b7c859bfdc8b143622593698e9f6877f9480b1ac8c88e1c5e398d36dd1003de6f5579ea50497cfde749f1fd161ea  glew-2.1.0.tar.xz
"
