diff options
Diffstat (limited to 'libraries/glew/glew.SlackBuild')
-rw-r--r-- | libraries/glew/glew.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libraries/glew/glew.SlackBuild b/libraries/glew/glew.SlackBuild index d14be26f22145..9e8ea552e69b4 100644 --- a/libraries/glew/glew.SlackBuild +++ b/libraries/glew/glew.SlackBuild @@ -5,7 +5,7 @@ # This script is dedicated to the public domain PRGNAM=glew -VERSION=1.5.0 +VERSION=1.5.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -33,9 +35,13 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . 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). 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 install GLEW_DEST=$PKG/usr |