libraries/glew: Updated for version 1.5.1

This commit is contained in:
David Spencer 2010-05-12 17:40:44 +02:00 committed by Robby Workman
parent 9c3b2fe2f6
commit 57d3fc6748
3 changed files with 22 additions and 16 deletions

View file

@ -5,7 +5,7 @@
# This script is dedicated to the public domain # This script is dedicated to the public domain
PRGNAM=glew PRGNAM=glew
VERSION=1.5.0 VERSION=1.5.1
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi fi
set -e set -e
@ -33,9 +35,13 @@ chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
chmod 0755 doc ; chmod a-x doc/* chmod 0755 doc ; chmod a-x doc/*
# This patch resolves a clash between Glew and Slackware 12's Mesa Glut # This patch resolves a clash between Glew and Slackware's Mesa Glut
# (unpatched glew.h undefs a macro GLAPIENTRY defined by Mesa Glut's glu.h). # (unpatched glew.h undefs a macro GLAPIENTRY defined by Mesa Glut's glu.h).
patch -p1 < $CWD/glew_glapientry.patch patch -p1 < $CWD/glew_glapientry.patch
# Fix build error in 1.5.1 (bug 2274802)
_TEMPFILE=$(mktemp)
fromdos < config/config.guess > ${_TEMPFILE}
cat ${_TEMPFILE} > config/config.guess ; rm -f ${_TEMPFILE}
make OPT="$SLKCFLAGS" make OPT="$SLKCFLAGS"
make install GLEW_DEST=$PKG/usr make install GLEW_DEST=$PKG/usr

View file

@ -1,8 +1,8 @@
PRGNAM="glew" PRGNAM="glew"
VERSION="1.5.0" VERSION="1.5.1"
HOMEPAGE="http://glew.sourceforge.net/" HOMEPAGE="http://glew.sourceforge.net/"
DOWNLOAD="http://download.sourceforge.net/glew/glew-1.5.0-src.tgz" DOWNLOAD="http://downloads.sourceforge.net/glew/glew-1.5.1-src.tgz"
MD5SUM="3fececda0151b060c08ffd8a12892741" MD5SUM="759a59853dfaae4d007b414a3c1712f2"
MAINTAINER="David Spencer" MAINTAINER="David Spencer"
EMAIL="nobbutl@yahoo.co.uk" EMAIL="nobbutl@yahoo.co.uk"
APPROVED="rworkman,Erik Hanson" APPROVED="rworkman"

View file

@ -1,10 +1,10 @@
--- glew-1.5.0/include/GL/glew.h 2007-12-28 03:09:49.000000000 +0000 --- glew-1.5.1/include/GL/glew.h 2008-11-03 06:25:21.000000000 +0000
+++ glew-patched/include/GL/glew.h 2008-01-26 11:45:27.000000000 +0000 +++ glew-patched/include/GL/glew.h 2008-11-21 23:23:16.000000000 +0000
@@ -10764,7 +10764,6 @@ @@ -12243,7 +12243,6 @@
#ifdef GLEW_APIENTRY_DEFINED #ifdef GLEW_APIENTRY_DEFINED
#undef GLEW_APIENTRY_DEFINED #undef GLEW_APIENTRY_DEFINED
#undef APIENTRY #undef APIENTRY
-#undef GLAPIENTRY -#undef GLAPIENTRY
#endif #endif
#ifdef GLEW_CALLBACK_DEFINED #ifdef GLEW_CALLBACK_DEFINED