mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/glew: Updated for version 1.5.1
This commit is contained in:
parent
9c3b2fe2f6
commit
57d3fc6748
3 changed files with 22 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="glew"
|
||||
VERSION="1.5.0"
|
||||
VERSION="1.5.1"
|
||||
HOMEPAGE="http://glew.sourceforge.net/"
|
||||
DOWNLOAD="http://download.sourceforge.net/glew/glew-1.5.0-src.tgz"
|
||||
MD5SUM="3fececda0151b060c08ffd8a12892741"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/glew/glew-1.5.1-src.tgz"
|
||||
MD5SUM="759a59853dfaae4d007b414a3c1712f2"
|
||||
MAINTAINER="David Spencer"
|
||||
EMAIL="nobbutl@yahoo.co.uk"
|
||||
APPROVED="rworkman,Erik Hanson"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
--- glew-1.5.0/include/GL/glew.h 2007-12-28 03:09:49.000000000 +0000
|
||||
+++ glew-patched/include/GL/glew.h 2008-01-26 11:45:27.000000000 +0000
|
||||
@@ -10764,7 +10764,6 @@
|
||||
#ifdef GLEW_APIENTRY_DEFINED
|
||||
#undef GLEW_APIENTRY_DEFINED
|
||||
#undef APIENTRY
|
||||
-#undef GLAPIENTRY
|
||||
#endif
|
||||
|
||||
#ifdef GLEW_CALLBACK_DEFINED
|
||||
--- glew-1.5.1/include/GL/glew.h 2008-11-03 06:25:21.000000000 +0000
|
||||
+++ glew-patched/include/GL/glew.h 2008-11-21 23:23:16.000000000 +0000
|
||||
@@ -12243,7 +12243,6 @@
|
||||
#ifdef GLEW_APIENTRY_DEFINED
|
||||
#undef GLEW_APIENTRY_DEFINED
|
||||
#undef APIENTRY
|
||||
-#undef GLAPIENTRY
|
||||
#endif
|
||||
|
||||
#ifdef GLEW_CALLBACK_DEFINED
|
||||
|
|
Loading…
Reference in a new issue