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

Context Navigation

  • Back to Ticket #470

Ticket #470: cegui-0.7.5.patch

File cegui-0.7.5.patch, 3.4 KB (added by michaelvoliveira, 5 years ago)

Path to add Haiku cases

  • Samples/common/src/CEGuiSample.cpp

    diff -Naur CEGUI-0.7.5/Samples/common/src/CEGuiSample.cpp CEGUI-0.7.5-haiku/Samples/common/src/CEGuiSample.cpp
    old new  
    3535// includes for renderer selector classes 
    3636#if defined( __WIN32__ ) || defined( _WIN32 ) 
    3737#   include "Win32CEGuiRendererSelector.h" 
    38 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) 
     38#elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)  || defined(__HAIKU__) 
    3939#   ifdef CEGUI_SAMPLES_USE_GTK2 
    4040#       include "GTK2CEGuiRendererSelector.h" 
    4141#   else 
  • cegui/include/CEGUIDynamicModule.h

    diff -Naur CEGUI-0.7.5/cegui/include/CEGUIDynamicModule.h CEGUI-0.7.5-haiku/cegui/include/CEGUIDynamicModule.h
    old new  
    4343    struct HINSTANCE__; 
    4444    typedef struct HINSTANCE__* hInstance; 
    4545 
    46 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) 
     46#elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) 
    4747#    define DYNLIB_HANDLE void* 
    4848#    define DYNLIB_LOAD( a ) dlopen( a, RTLD_LAZY ) 
    4949#    define DYNLIB_GETSYM( a, b ) dlsym( a, b ) 
  • cegui/src/CEGUIDynamicModule.cpp

    diff -Naur CEGUI-0.7.5/cegui/src/CEGUIDynamicModule.cpp CEGUI-0.7.5-haiku/cegui/src/CEGUIDynamicModule.cpp
    old new  
    4646#   include "macPlugins.h" 
    4747#endif 
    4848 
    49 #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) 
     49#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) 
    5050#   include "dlfcn.h" 
    5151#endif 
    5252 
    … …  
    6464                return; 
    6565        } // if(name.empty()) 
    6666 
    67 #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) 
     67#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)  || defined(__HAIKU__) 
    6868    #if defined(CEGUI_HAS_VERSION_SUFFIX) || defined(CEGUI_HAS_BUILD_SUFFIX) 
    6969        // check if we are being asked to open a CEGUI .so, if so postfix the 
    7070        // name with our package version 
  • cegui/src/CEGUISystem.cpp

    diff -Naur CEGUI-0.7.5/cegui/src/CEGUISystem.cpp CEGUI-0.7.5-haiku/cegui/src/CEGUISystem.cpp
    old new  
    110110    return timeGetTime() / 1000.0; 
    111111} 
    112112 
    113 #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) 
     113#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)  || defined(__HAIKU__) 
    114114#include <sys/time.h> 
    115115double SimpleTimer::currentTime() 
    116116{ 
  • configure.ac

    diff -Naur CEGUI-0.7.5/configure.ac CEGUI-0.7.5-haiku/configure.ac
    old new  
    6060# Checks for libraries (skip on mingw32). 
    6161if test x$MINGW32 != xyes; then 
    6262    AC_CHECK_LIB([dl], [dlopen]) 
    63     AC_CHECK_LIB([pthread], [pthread_create],, AC_MSG_ERROR([cannot find pthread library])) 
     63    AC_CHECK_LIB([root], [pthread_create],, AC_MSG_ERROR([cannot find pthread library])) 
    6464fi 
    6565 
    6666CEGUI_CODE_OPTIONS 

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/