HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #520

Ticket #520: irrlicht-1.8.0-svn.patch

File irrlicht-1.8.0-svn.patch, 1.9 KB (added by michaelvoliveira, 4 years ago)

It's building, but is missing a patch to makefile works under Haiku... Work in progress

  • include/IrrCompileConfig.h

    diff -Nbaur irrlicht-1.8.0-svn/include/IrrCompileConfig.h irrlicht-1.8.0-svn-haiku/include/IrrCompileConfig.h
    old new  
    102102#define _IRR_LINUX_PLATFORM_ 
    103103#endif 
    104104#define _IRR_POSIX_API_ 
     105#if defined(__HAIKU__) 
     106//check twice 
     107#undef _IRR_COMPILE_WITH_X11_ 
     108#define _IRR_COMPILE_WITH_SDL_DEVICE_ 
     109#define _IRR_COMPILE_WITH_OPENGL_ 
     110#define _IRR_GETPROCADDRESS_WORKAROUND_ 
     111#else 
    105112#define _IRR_COMPILE_WITH_X11_DEVICE_ 
    106113#endif 
     114#endif 
    107115 
    108116 
    109117//! Define _IRR_COMPILE_WITH_JOYSTICK_SUPPORT_ if you want joystick events. 
  • source/Irrlicht/CFileSystem.cpp

    diff -Nbaur irrlicht-1.8.0-svn/source/Irrlicht/CFileSystem.cpp irrlicht-1.8.0-svn-haiku/source/Irrlicht/CFileSystem.cpp
    old new  
    811811                                        size = buf.st_size; 
    812812                                        isDirectory = S_ISDIR(buf.st_mode); 
    813813                                } 
    814                                 #if !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__CYGWIN__) 
     814                                #if !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__CYGWIN__) && !defined(__HAIKU__) 
    815815                                // only available on some systems 
    816816                                else 
    817817                                { 
  • source/Irrlicht/COSOperator.cpp

    diff -Nbaur irrlicht-1.8.0-svn/source/Irrlicht/COSOperator.cpp irrlicht-1.8.0-svn-haiku/source/Irrlicht/COSOperator.cpp
    old new  
    1313#include <unistd.h> 
    1414#ifndef _IRR_SOLARIS_PLATFORM_ 
    1515#include <sys/types.h> 
     16#if !defined(__HAIKU__) 
    1617#include <sys/sysctl.h> 
    1718#endif 
    1819#endif 
     20#endif 
    1921 
    2022#if defined(_IRR_COMPILE_WITH_X11_DEVICE_) 
    2123#include "CIrrDeviceLinux.h" 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/