diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2015-10-16 13:56:42 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-10-16 23:27:30 +0700 |
commit | 6776d56b59b92271d396aee55a54f52c9ba3cf6c (patch) | |
tree | b3531f8d7ba01d18bae1a41c58a21ea664cffffd /libraries/irrlicht/irrlicht.SlackBuild | |
parent | 83c83a425a46e96d6f2e5d12ae2cac95f7b69578 (diff) | |
download | slackbuilds-6776d56b59b92271d396aee55a54f52c9ba3cf6c.tar.gz |
libraries/irrlicht: Updated for version 1.8.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/irrlicht/irrlicht.SlackBuild')
-rw-r--r-- | libraries/irrlicht/irrlicht.SlackBuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libraries/irrlicht/irrlicht.SlackBuild b/libraries/irrlicht/irrlicht.SlackBuild index c40a3de712..aa493f5875 100644 --- a/libraries/irrlicht/irrlicht.SlackBuild +++ b/libraries/irrlicht/irrlicht.SlackBuild @@ -26,7 +26,7 @@ # Revision date 2013/03/28 PRGNAM=irrlicht -VERSION=${VERSION:-1.8.1} +VERSION=${VERSION:-1.8.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,6 +72,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Set maximum number of textures. +sed -i '/_IRR_MATERIAL_MAX_TEXTURES_/s|4|8|' include/IrrCompileConfig.h + +# Patch for Mesa 10. +patch -p1 < $CWD/irrlicht-1.8.1-mesa10.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ NDEBUG=1 \ @@ -92,8 +98,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Fix end-of-line encoding. for i in $PKG/usr/include/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/*; do - cp $i ${i}.new - sed -i 's/\r//' ${i}.new + sed -e 's/\r//' $i > ${i}.new touch -r $i ${i}.new mv ${i}.new $i done |