summaryrefslogtreecommitdiff
path: root/libraries/irrlicht
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2012-09-13 10:29:14 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2012-09-13 10:29:14 -0300
commitd1768face2c440786e88b7cedb3ff0cc3e3bfc76 (patch)
tree5eb33d30d37a2e4146e236991505ecbb2d94c18f /libraries/irrlicht
parent09161e04ca985bfc4e84e15d164cdf5c1cd5df71 (diff)
downloadslackbuilds-d1768face2c440786e88b7cedb3ff0cc3e3bfc76.tar.gz
libraries/irrlicht: Fixed to build against gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/irrlicht')
-rw-r--r--libraries/irrlicht/irrlicht.SlackBuild11
-rw-r--r--libraries/irrlicht/irrlicht_gcc47.patch11
2 files changed, 19 insertions, 3 deletions
diff --git a/libraries/irrlicht/irrlicht.SlackBuild b/libraries/irrlicht/irrlicht.SlackBuild
index e4ef02e98c..b916bda023 100644
--- a/libraries/irrlicht/irrlicht.SlackBuild
+++ b/libraries/irrlicht/irrlicht.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for irrlicht
# Copyright 2010 Larry Hajali <larryhaja[at]gmail[dot]com>
-# Copyright 2011 Niels Horn, Rio de Janeiro, RJ, Brazil
+# Copyright 2011-2012 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,11 +23,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Revision date 2011/10/26
+# Revision date 2012/08/09
PRGNAM=irrlicht
VERSION=${VERSION:-svn_3843}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -76,8 +76,13 @@ find . \
# Based on a patch from Debian, adapted for the newer irrlicht versions
patch -p1 < $CWD/correct-install.diff
+# Patch for gcc-4.7 - included upstream on 2012/06/18.
+# Thanks to Larry Hajali for the info!
+patch -p1 < $CWD/irrlicht_gcc47.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+NDEBUG=1 \
make -C source/Irrlicht \
sharedlib staticlib
make -C source/Irrlicht install \
diff --git a/libraries/irrlicht/irrlicht_gcc47.patch b/libraries/irrlicht/irrlicht_gcc47.patch
new file mode 100644
index 0000000000..38b7395a91
--- /dev/null
+++ b/libraries/irrlicht/irrlicht_gcc47.patch
@@ -0,0 +1,11 @@
+diff -Naur irrlicht-svn_3843.orig/source/Irrlicht/Makefile irrlicht-svn_3843/source/Irrlicht/Makefile
+--- irrlicht-svn_3843.orig/source/Irrlicht/Makefile 2011-05-18 21:32:00.000000000 +0000
++++ irrlicht-svn_3843/source/Irrlicht/Makefile 2012-07-14 23:23:53.693933309 +0000
+@@ -82,7 +82,6 @@
+ LIB_PATH = ../../lib/$(SYSTEM)
+ INSTALL_DIR = /usr/local/lib
+ sharedlib install: SHARED_LIB = libIrrlicht.so
+-staticlib sharedlib: LDFLAGS += --no-export-all-symbols --add-stdcall-alias
+ sharedlib: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm
+ staticlib sharedlib: CXXINCS += -I/usr/X11R6/include
+