summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-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
+