Update Irrlicht
Minetest-For-Mobile/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-12-22 18:17:34 -05:00
parent 8e957691f7
commit df4c5f7dbb
1 changed files with 5 additions and 8 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
IRRLICHT_VERSION='6172'
IRRLICHT_VERSION='6177'
set -e
@ -8,19 +8,16 @@ svn export -r "${IRRLICHT_VERSION}" svn://svn.code.sf.net/p/irrlicht/code/branch
cd irrlicht
dos2unix source/Irrlicht/CIrrDeviceLinux.cpp
dos2unix source/Irrlicht/Makefile
dos2unix include/IrrCompileConfig.h
dos2unix source/Irrlicht/COGLESCommon.h
wget -O - https://sourceforge.net/p/irrlicht/patches/_discuss/thread/97431334ce/5686/30b0/attachment/multitouch-and-phosh-fix-and-libpng-fix.patch | patch -p1
wget -O - https://sourceforge.net/p/irrlicht/patches/_discuss/thread/97431334ce/5686/30b0/ad44/attachment/fix-gles-header.patch | patch -p1
wget -O - https://sourceforge.net/p/irrlicht/patches/_discuss/thread/97431334ce/37b2/f348/0599/attachment/multitouch.patch | patch -p1
disable_feature() {
sed -i "s/^#define $1.*$//g" include/IrrCompileConfig.h
sed -i "s/^#define $1.*\$//g" include/IrrCompileConfig.h
}
enable_feature() {
sed -i "s/^\/\/#define $1.*$/#define $1/g" include/IrrCompileConfig.h
sed -i "s/^#define NO$1.*$//g" include/IrrCompileConfig.h
sed -i "s/^#define NO$1.*\$//g" include/IrrCompileConfig.h
sed -i "s/^#ifdef NO$1\$/#ifndef $1\n#define $1\n#endif\n#ifdef NO$1/g" include/IrrCompileConfig.h
}
disable_feature _IRR_COMPILE_WITH_OPENGL_